Class: Groonga::TooLargePage

Inherits:
Error
  • Object
show all
Defined in:
lib/groonga/pagination.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(page, available_pages) ⇒ TooLargePage

Returns a new instance of TooLargePage.



43
44
45
46
47
48
# File 'lib/groonga/pagination.rb', line 43

def initialize(page, available_pages)
  @page = page
  @available_pages = available_pages
  super("too large page: #{@page}: " +
        "available pages: #{@available_pages.inspect}")
end

Instance Attribute Details

#available_pagesObject (readonly)

有効なページ。Range。



42
43
44
# File 'lib/groonga/pagination.rb', line 42

def available_pages
  @available_pages
end

#pageObject (readonly)

指定したページ番号。



40
41
42
# File 'lib/groonga/pagination.rb', line 40

def page
  @page
end