Inversion ‘begin’ tag.
This tag causes a section of the template to be rendered only if no exceptions are raised while it’s being rendered. If an exception is raised, it is checked against any ‘rescue’ blocks, and the first one with a matching exception is rendered instead. If no ‘rescue’ block is found, the exception is handled by the configured exception behavior for the template, and the resulting replaces the block.
<?begin ?><?call employees.length ?><?end?> <?begin ?> <?for employee in employees.all ?> <?attr employee.name ?> --> <?attr employee.title ?> <?end for?> <?rescue DatabaseError => err ?> Oh no!! I can't talk to the database for some reason. The error was as follows: <pre> <?attr err.message ?> </pre> <?end?>
- rescue_clauses R
The tuples of rescue clauses handled by the begin
Override the append operator to separate out RescueTags and the nodes that follow them.
The replacement exception-handler provided to RenderState.
Render the tag’s contents if the condition is true, or any else or elsif sections if the condition isn’t true.
Initialize a new