Sha256: 7af15ba27e6dba7b32aec87153a6a287a3bcbeb146743577ec2ce5176a2a45c9
Contents?: true
Size: 386 Bytes
Versions: 38
Compression:
Stored size: 386 Bytes
Contents
class NativeException def unravel e = self while e and e.respond_to? :cause puts '--------------------' puts e.class.to_s puts e.message pp e.backtrace.to_a e = e.cause end puts '======================' end def root_cause rc = e = self while e and e.respond_to? :cause rc = e e = e.cause end rc end end
Version data entries
38 entries across 38 versions & 1 rubygems