Exception: Duby::Transform::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Duby::Transform::Error
- Defined in:
- lib/duby/transform.rb
Instance Attribute Summary collapse
-
#cause ⇒ Object
readonly
Returns the value of attribute cause.
-
#position ⇒ Object
readonly
Returns the value of attribute position.
Instance Method Summary collapse
-
#initialize(msg, position, cause = nil) ⇒ Error
constructor
A new instance of Error.
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
#cause ⇒ Object (readonly)
Returns the value of attribute cause.
6 7 8 |
# File 'lib/duby/transform.rb', line 6 def cause @cause end |
#position ⇒ Object (readonly)
Returns the value of attribute position.
6 7 8 |
# File 'lib/duby/transform.rb', line 6 def position @position end |