Class: Honeybadger::Notice::Cause Private

Inherits:
Object
  • Object
show all
Defined in:
lib/honeybadger/notice.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cause) ⇒ Cause

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Cause.



66
67
68
69
70
# File 'lib/honeybadger/notice.rb', line 66

def initialize(cause)
  self.error_class = cause.class.name
  self.error_message = cause.message
  self.backtrace = cause.backtrace
end

Instance Attribute Details

#backtraceObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



64
65
66
# File 'lib/honeybadger/notice.rb', line 64

def backtrace
  @backtrace
end

#error_classObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



64
65
66
# File 'lib/honeybadger/notice.rb', line 64

def error_class
  @error_class
end

#error_messageObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



64
65
66
# File 'lib/honeybadger/notice.rb', line 64

def error_message
  @error_message
end