Class: Dia::ExceptionStruct

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#backtraceString (readonly)

Returns Exception#backtrace as a String.

Returns:

  • (String)

    the current value of backtrace



12
13
14
# File 'lib/dia/exception_struct.rb', line 12

def backtrace
  @backtrace
end

#klassString (readonly)

Returns Exception#class as a String.

Returns:

  • (String)

    the current value of klass



12
13
14
# File 'lib/dia/exception_struct.rb', line 12

def klass
  @klass
end

#messageString (readonly)

Returns Exception#message as a String.

Returns:

  • (String)

    the current value of message



12
13
14
# File 'lib/dia/exception_struct.rb', line 12

def message
  @message
end