Class: ExceptionHandle
- Inherits:
-
Object
- Object
- ExceptionHandle
- Defined in:
- lib/sqs_web/application/exception_handle.rb
Instance Attribute Summary collapse
-
#error_backtrace ⇒ Object
readonly
Returns the value of attribute error_backtrace.
-
#error_class ⇒ Object
readonly
Returns the value of attribute error_class.
-
#error_message ⇒ Object
readonly
Returns the value of attribute error_message.
Instance Method Summary collapse
-
#initialize(error) ⇒ ExceptionHandle
constructor
A new instance of ExceptionHandle.
Constructor Details
#initialize(error) ⇒ ExceptionHandle
Returns a new instance of ExceptionHandle.
4 5 6 7 8 |
# File 'lib/sqs_web/application/exception_handle.rb', line 4 def initialize(error) @error_class = error.inspect.to_s = error..to_s @error_backtrace = error.backtrace.to_s end |
Instance Attribute Details
#error_backtrace ⇒ Object (readonly)
Returns the value of attribute error_backtrace.
2 3 4 |
# File 'lib/sqs_web/application/exception_handle.rb', line 2 def error_backtrace @error_backtrace end |
#error_class ⇒ Object (readonly)
Returns the value of attribute error_class.
2 3 4 |
# File 'lib/sqs_web/application/exception_handle.rb', line 2 def error_class @error_class end |
#error_message ⇒ Object (readonly)
Returns the value of attribute error_message.
2 3 4 |
# File 'lib/sqs_web/application/exception_handle.rb', line 2 def end |