Exception: Poliqarp::IndexOutOfBounds
- Inherits:
-
PoliqarpException
- Object
- Exception
- PoliqarpException
- Poliqarp::IndexOutOfBounds
- Defined in:
- lib/poliqarpr/exceptions.rb
Overview
The IndexOutOfBounds exception is raised if the index of given excerpt is larger than the size of query buffer.
Instance Method Summary collapse
-
#initialize(index) ⇒ IndexOutOfBounds
constructor
A new instance of IndexOutOfBounds.
- #to_s ⇒ Object
Constructor Details
#initialize(index) ⇒ IndexOutOfBounds
Returns a new instance of IndexOutOfBounds.
19 20 21 22 |
# File 'lib/poliqarpr/exceptions.rb', line 19 def initialize(index) super @index = index end |
Instance Method Details
#to_s ⇒ Object
24 25 26 |
# File 'lib/poliqarpr/exceptions.rb', line 24 def to_s "Poliqarp::IndexOutOfBounds(#{@index})" end |