throws?

perform action, and return true if errors were thrown


Parameters

throws? action :block :bytecode

Returns

  • :logical

Examples

copy
throws? [ 1 + 2 ] ; => false throws? -> 1/0 ; => true

Related