Sha256: b5bb11b8bdff06e68290e9a1a0653f1aa5d2e7dde831086fb5f4f69ae283e3a4
Contents?: true
Size: 832 Bytes
Versions: 31
Compression:
Stored size: 832 Bytes
Contents
module JsonapiCompliable module Errors class BadFilter < StandardError; end class ValidationError < StandardError; end class UnsupportedPageSize < StandardError def initialize(size, max) @size, @max = size, max end def message "Requested page size #{@size} is greater than max supported size #{@max}" end end class StatNotFound < StandardError def initialize(attribute, calculation) @attribute = attribute @calculation = calculation end def message "No stat configured for calculation #{pretty(@calculation)} on attribute #{pretty(@attribute)}" end private def pretty(input) if input.is_a?(Symbol) ":#{input}" else "'#{input}'" end end end end end
Version data entries
31 entries across 31 versions & 1 rubygems