Exception: Pione::Lang::IndexError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/pione/lang/lang-exception.rb

Overview

Others

Instance Method Summary collapse

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

#messageObject



148
149
150
# File 'lib/pione/lang/lang-exception.rb', line 148

def message
  "index is out of range: %s" % [@index.inspect]
end