Exception: NextPage::Exceptions::InvalidSortParameter
- Inherits:
-
NextPageError
- Object
- StandardError
- NextPageError
- NextPage::Exceptions::InvalidSortParameter
- Defined in:
- lib/next_page/exceptions/invalid_sort_parameter.rb
Overview
Invalid Sort Parameter
Instance Method Summary collapse
-
#initialize(segment) ⇒ InvalidSortParameter
constructor
A new instance of InvalidSortParameter.
- #message ⇒ Object
Constructor Details
#initialize(segment) ⇒ InvalidSortParameter
Returns a new instance of InvalidSortParameter.
7 8 9 |
# File 'lib/next_page/exceptions/invalid_sort_parameter.rb', line 7 def initialize(segment) @segment = segment end |
Instance Method Details
#message ⇒ Object
11 12 13 |
# File 'lib/next_page/exceptions/invalid_sort_parameter.rb', line 11 def "Invalid sort parameter (#{@segment}). Must be an attribute or scope." end |