Class: Dia::ExceptionStruct
- Inherits:
-
Struct
- Object
- Struct
- Dia::ExceptionStruct
- Defined in:
- lib/dia/exception_struct.rb
Overview
The instance methods available on this class represent data extracted from an Exception-derived object.
An instance of this class is returned by Dia::RubyBlock#exception.
This class shouldn’t be initialized directly by you.
Instance Attribute Summary collapse
-
#backtrace ⇒ String
readonly
Returns Exception#backtrace as a String.
-
#klass ⇒ String
readonly
Returns Exception#class as a String.
-
#message ⇒ String
readonly
Returns Exception#message as a String.
Instance Attribute Details
#backtrace ⇒ String (readonly)
Returns Exception#backtrace as a String.
12 13 14 |
# File 'lib/dia/exception_struct.rb', line 12 def backtrace @backtrace end |
#klass ⇒ String (readonly)
Returns Exception#class as a String.
12 13 14 |
# File 'lib/dia/exception_struct.rb', line 12 def klass @klass end |
#message ⇒ String (readonly)
Returns Exception#message as a String.
12 13 14 |
# File 'lib/dia/exception_struct.rb', line 12 def @message end |