Class: Bugsnag::Error
- Inherits:
-
Object
- Object
- Bugsnag::Error
- Defined in:
- lib/bugsnag/error.rb
Instance Attribute Summary collapse
-
#error_class ⇒ String
The error’s class name.
-
#error_message ⇒ String
The error’s message.
-
#stacktrace ⇒ Hash
readonly
The error’s processed stacktrace.
-
#type ⇒ String
The type of error (always “ruby”).
Instance Method Summary collapse
-
#initialize(error_class, error_message, stacktrace) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(error_class, error_message, stacktrace) ⇒ Error
Returns a new instance of Error.
18 19 20 21 22 23 |
# File 'lib/bugsnag/error.rb', line 18 def initialize(error_class, , stacktrace) @error_class = error_class @error_message = @stacktrace = stacktrace @type = TYPE end |
Instance Attribute Details
#error_class ⇒ String
Returns the error’s class name.
4 5 6 |
# File 'lib/bugsnag/error.rb', line 4 def error_class @error_class end |
#error_message ⇒ String
Returns the error’s message.
7 8 9 |
# File 'lib/bugsnag/error.rb', line 7 def @error_message end |
#stacktrace ⇒ Hash (readonly)
Returns the error’s processed stacktrace.
10 11 12 |
# File 'lib/bugsnag/error.rb', line 10 def stacktrace @stacktrace end |
#type ⇒ String
Returns the type of error (always “ruby”).
13 14 15 |
# File 'lib/bugsnag/error.rb', line 13 def type @type end |