Open
Description
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.