Exception: Pione::Lang::IndexError
- Inherits:
-
StandardError
- Object
- StandardError
- Pione::Lang::IndexError
- Defined in:
- lib/pione/lang/lang-exception.rb
Overview
Others
Instance Method Summary collapse
-
#initialize(index) ⇒ IndexError
constructor
A new instance of IndexError.
- #message ⇒ Object
Constructor Details
#initialize(index) ⇒ IndexError
Returns a new instance of IndexError.
144 145 146 |
# File 'lib/pione/lang/lang-exception.rb', line 144 def initialize(index) @index = index end |
Instance Method Details
#message ⇒ Object
148 149 150 |
# File 'lib/pione/lang/lang-exception.rb', line 148 def "index is out of range: %s" % [@index.inspect] end |