Exception: Duby::Transform::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/duby/transform.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, position, cause = nil) ⇒ Error

Returns a new instance of Error.



7
8
9
10
11
12
# File 'lib/duby/transform.rb', line 7

def initialize(msg, position, cause=nil)
  super(msg)
  @position = position
  @position = position.position if position.respond_to? :position
  @cause = cause
end

Instance Attribute Details

#causeObject (readonly)

Returns the value of attribute cause.



6
7
8
# File 'lib/duby/transform.rb', line 6

def cause
  @cause
end

#positionObject (readonly)

Returns the value of attribute position.



6
7
8
# File 'lib/duby/transform.rb', line 6

def position
  @position
end