class Lumberjack::Beats::Connection::ConnectionClosed

Wrap the original exception into a common one, to make upstream managing and reporting easier But lets make sure we keep the meaning of the original exception.

Attributes

original_exception[R]

Public Class Methods

new(original_exception) click to toggle source
Calls superclass method
# File lib/lumberjack/beats/server.rb, line 396
def initialize(original_exception)
  super(original_exception)

  @original_exception = original_exception
  set_backtrace(original_exception.backtrace) if original_exception
end

Public Instance Methods

to_s() click to toggle source
# File lib/lumberjack/beats/server.rb, line 403
def to_s
  "#{self.class.name} wrapping: #{original_exception.class.name}, #{super.to_s}"
end