Exception: Mirah::MirahError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/mirah/errors.rb

Direct Known Subclasses

NodeError, Transform::Error

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, position = nil) ⇒ MirahError

Returns a new instance of MirahError.



6
7
8
9
# File 'lib/mirah/errors.rb', line 6

def initialize(message, position=nil)
  super(message)
  @position = position
end

Instance Attribute Details

#causeObject

Returns the value of attribute cause.



4
5
6
# File 'lib/mirah/errors.rb', line 4

def cause
  @cause
end

#positionObject

Returns the value of attribute position.



3
4
5
# File 'lib/mirah/errors.rb', line 3

def position
  @position
end