Exception: Mirah::MirahError
- Inherits:
-
StandardError
- Object
- StandardError
- Mirah::MirahError
- Defined in:
- lib/mirah/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#cause ⇒ Object
Returns the value of attribute cause.
-
#position ⇒ Object
Returns the value of attribute position.
Instance Method Summary collapse
-
#initialize(message, position = nil) ⇒ MirahError
constructor
A new instance of MirahError.
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(, position=nil) super() @position = position end |
Instance Attribute Details
#cause ⇒ Object
Returns the value of attribute cause.
4 5 6 |
# File 'lib/mirah/errors.rb', line 4 def cause @cause end |
#position ⇒ Object
Returns the value of attribute position.
3 4 5 |
# File 'lib/mirah/errors.rb', line 3 def position @position end |