Ruby 1.9.3 Reference Manual > All Libraries > Builtin Library > class Exception > ==
self == other -> bool
自身と指定された other のクラスが同じであり、message と backtrace が == メソッドで比較して 等しい場合に true を返します。そうでない場合に false を返します。