Skip to content

Add exception handling to Ruru #49

Open
@d-unsed

Description

@d-unsed
handle_exceptions! {
    begin {
        // ...
    } rescue TypeError => e {
        // ...
    } rescue ArgumentError => e {
        // ...
    } rescue => e { // StandardError
        // ...
    } ensure {
        // ...
    }
}

Also there should be a way to call it without ensure (as well as ensure without rescue blocks). Possibly, separate macros are required.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions