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.
- #inspect ⇒ Object
Constructor Details
#initialize(message, position = nil) ⇒ MirahError
Returns a new instance of MirahError.
21 22 23 24 |
# File 'lib/mirah/errors.rb', line 21 def initialize(, position=nil) super() @position = position end |
Instance Attribute Details
#cause ⇒ Object
Returns the value of attribute cause.
19 20 21 |
# File 'lib/mirah/errors.rb', line 19 def cause @cause end |
#position ⇒ Object
Returns the value of attribute position.
18 19 20 |
# File 'lib/mirah/errors.rb', line 18 def position @position end |
Instance Method Details
#inspect ⇒ Object
26 27 28 |
# File 'lib/mirah/errors.rb', line 26 def inspect "MirahError: #{} #{position}" end |