Class: Bugsnag::Error

Inherits:
Object
  • Object
show all
Defined in:
lib/bugsnag/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, error_message, stacktrace)
  @error_class = error_class
  @error_message = error_message
  @stacktrace = stacktrace
  @type = TYPE
end

Instance Attribute Details

#error_classString

Returns the error’s class name.

Returns:

  • (String)

    the error’s class name



4
5
6
# File 'lib/bugsnag/error.rb', line 4

def error_class
  @error_class
end

#error_messageString

Returns the error’s message.

Returns:

  • (String)

    the error’s message



7
8
9
# File 'lib/bugsnag/error.rb', line 7

def error_message
  @error_message
end

#stacktraceHash (readonly)

Returns the error’s processed stacktrace.

Returns:

  • (Hash)

    the error’s processed stacktrace



10
11
12
# File 'lib/bugsnag/error.rb', line 10

def stacktrace
  @stacktrace
end

#typeString

Returns the type of error (always “ruby”).

Returns:

  • (String)

    the type of error (always “ruby”)



13
14
15
# File 'lib/bugsnag/error.rb', line 13

def type
  @type
end