class Crystal::Macros::ExceptionHandler
Overview
A begin ... end
expression with rescue
, #else
and #ensure
clauses.
Defined in:
compiler/crystal/macros.crInstance Method Summary
-
#body : ASTNode
Returns this exception handler's main body.
-
#else : ASTNode | Nop
Returns this exception handler's
#else
clause body, if any. -
#ensure : ASTNode | Nop
Returns this exception handler's
#ensure
clause body, if any. -
#rescues : ArrayLiteral(Rescue) | NilLiteral
Returns this exception handler's
rescue
clauses, if any.
Instance Method Detail
Returns this exception handler's #else
clause body, if any.
Returns this exception handler's #ensure
clause body, if any.
Returns this exception handler's rescue
clauses, if any.