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-1.5.2-java lib/pacer/support/native_exception.rb
pacer-1.5.1-java lib/pacer/support/native_exception.rb
pacer-1.4.2-java lib/pacer/support/native_exception.rb
pacer-1.4.1-java lib/pacer/support/native_exception.rb
pacer-1.4.0-java lib/pacer/support/native_exception.rb
pacer-1.3.5-java lib/pacer/support/native_exception.rb
pacer-1.3.4-java lib/pacer/support/native_exception.rb
pacer-1.3.3-java lib/pacer/support/native_exception.rb
pacer-1.3.2-java lib/pacer/support/native_exception.rb
pacer-1.3.1-java lib/pacer/support/native_exception.rb
pacer-1.2.0-java lib/pacer/support/native_exception.rb
pacer-1.1.1-java lib/pacer/support/native_exception.rb
pacer-1.1.0-java lib/pacer/support/native_exception.rb
pacer-1.0.3-java lib/pacer/support/native_exception.rb
pacer-1.0.2-java lib/pacer/support/native_exception.rb
pacer-1.0.1-java lib/pacer/support/native_exception.rb
pacer-1.0.0-java lib/pacer/support/native_exception.rb
pacer-0.9.1.1-java lib/pacer/support/native_exception.rb