Class: Micron::Runner::ExceptionInfo
- Inherits:
-
Object
- Object
- Micron::Runner::ExceptionInfo
- Defined in:
- lib/micron/runner/exception_info.rb
Instance Attribute Summary collapse
-
#backtrace ⇒ Object
readonly
Returns the value of attribute backtrace.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(ex) ⇒ ExceptionInfo
constructor
A new instance of ExceptionInfo.
Constructor Details
#initialize(ex) ⇒ ExceptionInfo
Returns a new instance of ExceptionInfo.
8 9 10 11 12 |
# File 'lib/micron/runner/exception_info.rb', line 8 def initialize(ex) @name = ex.class.to_s @message = ex. @backtrace = ex.backtrace end |
Instance Attribute Details
#backtrace ⇒ Object (readonly)
Returns the value of attribute backtrace.
6 7 8 |
# File 'lib/micron/runner/exception_info.rb', line 6 def backtrace @backtrace end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
6 7 8 |
# File 'lib/micron/runner/exception_info.rb', line 6 def @message end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/micron/runner/exception_info.rb', line 6 def name @name end |