in Ruby by
How an exception is handled in Ruby?

1 Answer

0 votes
by

To handle exception, the code that raises exception is enclosed within begin-end block. Using rescue clauses we can state type of exceptions we want to handle.

...