Class: Micron::Runner::ExceptionInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/micron/runner/exception_info.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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.message
  @backtrace = ex.backtrace
end

Instance Attribute Details

#backtraceObject (readonly)

Returns the value of attribute backtrace.



6
7
8
# File 'lib/micron/runner/exception_info.rb', line 6

def backtrace
  @backtrace
end

#messageObject (readonly)

Returns the value of attribute message.



6
7
8
# File 'lib/micron/runner/exception_info.rb', line 6

def message
  @message
end

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/micron/runner/exception_info.rb', line 6

def name
  @name
end