Exception: JFlow::Exceptions::Common

Inherits:
StandardError
  • Object
show all
Defined in:
lib/jflow_exceptions/jflow/exceptions/common.rb

Direct Known Subclasses

Fatal

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(exception) ⇒ Common

Returns a new instance of Common.



7
8
9
10
11
12
# File 'lib/jflow_exceptions/jflow/exceptions/common.rb', line 7

def initialize(exception)
  super(exception.message)
  @message  = exception.message
  @original = exception.class.name
  set_backtrace(exception.backtrace)
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



5
6
7
# File 'lib/jflow_exceptions/jflow/exceptions/common.rb', line 5

def message
  @message
end

#originalObject (readonly)

Returns the value of attribute original.



5
6
7
# File 'lib/jflow_exceptions/jflow/exceptions/common.rb', line 5

def original
  @original
end