Exception: Poliqarp::IndexOutOfBounds

Inherits:
PoliqarpException show all
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

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_sObject



24
25
26
# File 'lib/poliqarpr/exceptions.rb', line 24

def to_s
  "Poliqarp::IndexOutOfBounds(#{@index})"
end