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



7
8
9
# File 'lib/jsonapi_compliable/errors.rb', line 7

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

Instance Method Details

#messageObject



11
12
13
# File 'lib/jsonapi_compliable/errors.rb', line 11

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