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

Version Path
pacer-2.0.24-java lib/pacer/support/native_exception.rb
pacer-2.0.22-java lib/pacer/support/native_exception.rb
pacer-2.0.20-java lib/pacer/support/native_exception.rb
pacer-2.0.19-java lib/pacer/support/native_exception.rb
pacer-2.0.18-java lib/pacer/support/native_exception.rb
pacer-2.0.17-java lib/pacer/support/native_exception.rb
pacer-2.0.16-java lib/pacer/support/native_exception.rb
pacer-2.0.15-java lib/pacer/support/native_exception.rb
pacer-2.0.14-java lib/pacer/support/native_exception.rb
pacer-2.0.13-java lib/pacer/support/native_exception.rb
pacer-2.0.12-java lib/pacer/support/native_exception.rb
pacer-2.0.10-java lib/pacer/support/native_exception.rb
pacer-2.0.10.pre-java lib/pacer/support/native_exception.rb
pacer-2.0.8-java lib/pacer/support/native_exception.rb
pacer-2.0.6-java lib/pacer/support/native_exception.rb
pacer-2.0.4.pre-java lib/pacer/support/native_exception.rb
pacer-2.0.0.pre-java lib/pacer/support/native_exception.rb
pacer-1.6.0-java lib/pacer/support/native_exception.rb
pacer-1.5.4-java lib/pacer/support/native_exception.rb
pacer-1.5.3-java lib/pacer/support/native_exception.rb