Ruby 1.9.3 Reference Manual > All Libraries > Builtin Library > class Exception > ==

instance method Exception#==

self == other -> bool

自身と指定された other のクラスが同じであり、message と backtrace が == メソッドで比較して 等しい場合に true を返します。そうでない場合に false を返します。

[PARAM] other:
自身と比較したいオブジェクトを指定します。