First page Back Continue Last page Overview Graphics
Exception Handling
Exception handling is performed using begin/rescue.
Ruby has several built-in exceptions. You can also define your own.
Exceptions can be thrown using raise.
Ruby also has a catch/throw feature for breaking out of nested constructs.