Exception: JsonapiCompliable::Errors::UnsupportedPageSize
- Inherits:
-
StandardError
- Object
- StandardError
- JsonapiCompliable::Errors::UnsupportedPageSize
- Defined in:
- lib/jsonapi_compliable/errors.rb
Instance Method Summary collapse
-
#initialize(size, max) ⇒ UnsupportedPageSize
constructor
A new instance of UnsupportedPageSize.
- #message ⇒ Object
Constructor Details
#initialize(size, max) ⇒ UnsupportedPageSize
Returns a new instance of UnsupportedPageSize
7 8 9 |
# File 'lib/jsonapi_compliable/errors.rb', line 7 def initialize(size, max) @size, @max = size, max end |
Instance Method Details
#message ⇒ Object
11 12 13 |
# File 'lib/jsonapi_compliable/errors.rb', line 11 def "Requested page size #{@size} is greater than max supported size #{@max}" end |