raise
can be used to throw a java.lang.RuntimeException
. It comes in two forms: one with a
message as a string, and one with a message and a cause.
try {
...
raise("Somehow something is wrong")
} catch (e) {
...
raise("Something was wrong, and here is the cause", e)
}