Ruby exception hierarchy : Your Exception « Development « Ruby






Ruby exception hierarchy


Exception
 NoMemoryError
 ScriptError
   LoadError
   NotImplementedError
   SyntaxError
 SignalException
   Interrupt
 StandardError
   ArgumentError
   IOError
     EOFError
   IndexError
   LocalJumpError
   NameError
     NoMethodError
   RangeError
     FloatDomainError
   RegexpError
   RuntimeError
   SecurityError
   SystemCallError
   SystemStackError
   ThreadError
   TypeError
   ZeroDivisionError
 SystemExit
 fatal

 








Related examples in the same category

1.create your own type of exception if you wanted to.
2.if we create our own exception classes, they need to be subclasses of either class Exception or one of its descendants.