Errors
throw
Throw an error. Recommended: newobj Error from the standard library.
Syntax
throw <value>;
How she behaves
- Using stdlib/error.alana is recommended, so the thing you throw has a name.
- A catch further up the stack can receive it.
Example
including "stdlib/error.alana"; throw newobj Error(error);