Class: Appsignal::ExceptionNotification
- Inherits:
-
Object
- Object
- Appsignal::ExceptionNotification
- Defined in:
- lib/appsignal/exception_notification.rb
Instance Attribute Summary collapse
-
#backtrace ⇒ Object
readonly
Returns the value of attribute backtrace.
-
#env ⇒ Object
readonly
Returns the value of attribute env.
-
#exception ⇒ Object
readonly
Returns the value of attribute exception.
-
#kontroller ⇒ Object
readonly
Returns the value of attribute kontroller.
-
#request ⇒ Object
readonly
Returns the value of attribute request.
Instance Method Summary collapse
-
#initialize(env, exception) ⇒ ExceptionNotification
constructor
A new instance of ExceptionNotification.
- #message ⇒ Object
- #name ⇒ Object
Constructor Details
#initialize(env, exception) ⇒ ExceptionNotification
Returns a new instance of ExceptionNotification.
10 11 12 13 14 15 |
# File 'lib/appsignal/exception_notification.rb', line 10 def initialize(env, exception) @exception = exception @backtrace = Rails.respond_to?(:backtrace_cleaner) ? Rails.backtrace_cleaner.send(:filter, exception.backtrace) : exception.backtrace end |
Instance Attribute Details
#backtrace ⇒ Object (readonly)
Returns the value of attribute backtrace.
8 9 10 |
# File 'lib/appsignal/exception_notification.rb', line 8 def backtrace @backtrace end |
#env ⇒ Object (readonly)
Returns the value of attribute env.
8 9 10 |
# File 'lib/appsignal/exception_notification.rb', line 8 def env @env end |
#exception ⇒ Object (readonly)
Returns the value of attribute exception.
8 9 10 |
# File 'lib/appsignal/exception_notification.rb', line 8 def exception @exception end |
#kontroller ⇒ Object (readonly)
Returns the value of attribute kontroller.
8 9 10 |
# File 'lib/appsignal/exception_notification.rb', line 8 def kontroller @kontroller end |
#request ⇒ Object (readonly)
Returns the value of attribute request.
8 9 10 |
# File 'lib/appsignal/exception_notification.rb', line 8 def request @request end |
Instance Method Details
#message ⇒ Object
21 22 23 |
# File 'lib/appsignal/exception_notification.rb', line 21 def @exception. end |
#name ⇒ Object
17 18 19 |
# File 'lib/appsignal/exception_notification.rb', line 17 def name @exception.class.name end |