Skip to content

Instantly share code, notes, and snippets.

@jasoares
Created March 27, 2012 16:42
Show Gist options
  • Save jasoares/2217790 to your computer and use it in GitHub Desktop.
Save jasoares/2217790 to your computer and use it in GitHub Desktop.
Ruby Exceptions Hierarchy
Object
+--Exception
+--NoMemoryError
+--ScriptError
| +--LoadError
| +--NotImplementedError
| +--SyntaxError
+--SecurityError # Was a StandardError in 1.8
+--SignalException
| +--Interrupt
+--SystemExit
+--SystemStackError # Was a StandardError in 1.8
+--StandardError
+--ArgumentError
+--FiberError # New in 1.9
+--IOError
| +--EOFError
+--IndexError
| +--KeyError # New in 1.9
| +--StopIteration # New in 1.9
+--LocalJumpError
+--NameError
| +--NoMethodError
+--RangeError
| +--FloatDomainError
+--RegexpError
+--RuntimeError
+--SystemCallError
+--ThreadError
+--TypeError
+--ZeroDivisionError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment