Skip to content
On this page
class · Ruby 4.0

Exception

< Object 13 instance methods 4 class methods

Class Exception and its subclasses are used to indicate that an error or other problem has occurred, and may need to be handled. See Exceptions.

An Exception object carries certain information:

Built-In Exception Class Hierarchy

The hierarchy of built-in subclasses of class Exception:

Class methods 4

Instance methods 13

Ruby version changes 2

  1. 3.4
  2. 3.2