Exception: Marfa::Exceptions::PagesRangeError
- Defined in:
- lib/marfa/exceptions.rb
Overview
Pages range error
Instance Attribute Summary collapse
-
#redirect_page_to ⇒ Object
readonly
Returns the value of attribute redirect_page_to.
Instance Method Summary collapse
-
#initialize(msg = 'Page is out of range', redirect_page_to = 1) ⇒ PagesRangeError
constructor
A new instance of PagesRangeError.
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_to ⇒ Object (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 |