Class: Justlogging::ExceptionNotification
- Inherits:
-
Object
- Object
- Justlogging::ExceptionNotification
- Defined in:
- lib/justlogging/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.
12 13 14 15 16 17 |
# File 'lib/justlogging/exception_notification.rb', line 12 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.
10 11 12 |
# File 'lib/justlogging/exception_notification.rb', line 10 def backtrace @backtrace end |
#env ⇒ Object (readonly)
Returns the value of attribute env.
10 11 12 |
# File 'lib/justlogging/exception_notification.rb', line 10 def env @env end |
#exception ⇒ Object (readonly)
Returns the value of attribute exception.
10 11 12 |
# File 'lib/justlogging/exception_notification.rb', line 10 def exception @exception end |
#kontroller ⇒ Object (readonly)
Returns the value of attribute kontroller.
10 11 12 |
# File 'lib/justlogging/exception_notification.rb', line 10 def kontroller @kontroller end |
#request ⇒ Object (readonly)
Returns the value of attribute request.
10 11 12 |
# File 'lib/justlogging/exception_notification.rb', line 10 def request @request end |
Instance Method Details
#message ⇒ Object
23 24 25 |
# File 'lib/justlogging/exception_notification.rb', line 23 def @exception. end |
#name ⇒ Object
19 20 21 |
# File 'lib/justlogging/exception_notification.rb', line 19 def name @exception.class.name end |