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.
Constructor Details
#initialize(segment) ⇒ InvalidSortParameter
Returns a new instance of InvalidSortParameter.
7 8 9 10 |
# File 'lib/next_page/exceptions/invalid_sort_parameter.rb', line 7 def initialize(segment) @segment = segment super("Invalid sort parameter (#{@segment}). Must be an attribute or scope.") end |