Easypt

expect

..Root.except

If condition is false throw the result of invoking the callable object f with rest of arguments as f’s arguments.

Child of:

Root

Signatures:

NativeCallable, Callable

Example:

except(false, Exception, "Message");

Expected output

Exception at: ..Root.import
Exception at: ..Root.my_source_name
Exception at: ..Root.my_source_name.callOperator
Exception at: ..Root.except
Exception: Message