cheat sheets.

$ cheat exceptions
--- exceptions version 1	Thu Jul 09 23:08:52 -0700 2009
+++ exceptions version 4	Sun Nov 13 08:24:38 -0800 2011
@@ -1,29 +1,32 @@
 Exception
  NoMemoryError
  ScriptError
    LoadError
    NotImplementedError
    SyntaxError
  SignalException
    Interrupt
- StandardError
+     Timeout::Error    # require 'timeout' for Timeout::Error
+ StandardError         # caught by rescue if no type is specified
    ArgumentError
    IOError
      EOFError
    IndexError
    LocalJumpError
    NameError
      NoMethodError
    RangeError
      FloatDomainError
    RegexpError
    RuntimeError
+     Timeout::Error    # moved here in ruby 1.9.2
    SecurityError
+   SocketError
    SystemCallError
    SystemStackError
    ThreadError
    TypeError
    ZeroDivisionError
  SystemExit
  fatal
. o 0 (history | current )
( add new | see all )