Exception: JsonapiCompliable::Errors::UnsupportedPageSize

Inherits:
StandardError
  • Object
show all
Defined in:
lib/jsonapi_compliable/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(size, max) ⇒ UnsupportedPageSize

Returns a new instance of UnsupportedPageSize.



48
49
50
# File 'lib/jsonapi_compliable/errors.rb', line 48

def initialize(size, max)
  @size, @max = size, max
end

Instance Method Details

#messageObject



52
53
54
# File 'lib/jsonapi_compliable/errors.rb', line 52

def message
  "Requested page size #{@size} is greater than max supported size #{@max}"
end