The superclass of all exceptions.
Thrown when attempting to reserve too much memory at once.
Indicates a script error.
NotImplementedError
Thrown when an unimplemented feature is invoked.
Thrown by a syntax error.
Without a class specified, the rescue class will catch the subclasses of this exception class.
Thrown when argument numbers do not match or when the values are incorrect.
Thrown when the index is out of range.
Thrown when an I/O error occurs.
Thrown when EOF (End Of File) has been reached.
Thrown when no jump destination is found for a control structure.
Thrown when accessing an undefined local variable or constant.
Thrown when calling an undefined method.
A range exception. Thrown when an out-of-range integer conversion (from Bignum to Fixnum) , etc., occurs.
FloatDomainError
Thrown when trying to convert a positive or negative infinite number or NaN (Not a Number) into Bignum , or when comparing a number to a NaN.
Thrown when compiling a regular expression fails.
A runtime exception. Thrown when calling raise without specifying an exception.
SystemCallError
Thrown when a system call fails.
Exception class for each errno. See the Errno module for more on each class name.
SystemStackError
Thrown when a stack level becomes too deep.
Thrown when an illegal type is invoked.
ZeroDivisionError
Thrown when dividing by zero.
Terminates the program. See exit for more information.
A fatal (internal) error. This object is not visible with normal methods.