module
Ameba::Ext::Rescue
Overview
Extensions to Crystal::Rescue
Direct including types
Defined in:
ameba/ext/rescue.crInstance Method Summary
-
#end_location : Crystal::Location | Nil
Returns the end location of the
rescueclause header, being the end of the exception types (rescue ex : Exception), the variable name (rescue ex), or the keyword itself (rescue), instead of the end of the clause body. -
#name_location : Crystal::Location | Nil
Returns the location of the variable name in case of a named
rescue(i.e.
Instance Method Detail
def end_location : Crystal::Location | Nil
#
Returns the end location of the rescue clause header, being the end
of the exception types (rescue ex : Exception), the variable name
(rescue ex), or the keyword itself (rescue), instead of the end of
the clause body.
def name_location : Crystal::Location | Nil
#
Returns the location of the variable name in case of a named rescue
(i.e. ex in rescue ex), or nil otherwise.