Exception: Marfa::Exceptions::PagesRangeError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/marfa/exceptions.rb

Overview

Pages range error

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg = 'Page is out of range', redirect_page_to = 1) ⇒ PagesRangeError

Returns a new instance of PagesRangeError.



9
10
11
12
# File 'lib/marfa/exceptions.rb', line 9

def initialize(msg = 'Page is out of range', redirect_page_to = 1)
  @redirect_page_to = redirect_page_to
  super(msg)
end

Instance Attribute Details

#redirect_page_toObject (readonly)

Returns the value of attribute redirect_page_to.



7
8
9
# File 'lib/marfa/exceptions.rb', line 7

def redirect_page_to
  @redirect_page_to
end