Exception: Graphiti::Errors::UnsupportedSort
- Defined in:
- lib/graphiti/errors.rb
Instance Method Summary collapse
-
#initialize(resource, attribute, allowlist, direction) ⇒ UnsupportedSort
constructor
A new instance of UnsupportedSort.
- #message ⇒ Object
Constructor Details
#initialize(resource, attribute, allowlist, direction) ⇒ UnsupportedSort
Returns a new instance of UnsupportedSort.
134 135 136 137 138 139 |
# File 'lib/graphiti/errors.rb', line 134 def initialize(resource, attribute, allowlist, direction) @resource = resource @attribute = attribute @allowlist = allowlist @direction = direction end |
Instance Method Details
#message ⇒ Object
141 142 143 144 145 |
# File 'lib/graphiti/errors.rb', line 141 def <<~MSG #{@resource.class.name}: tried to sort on attribute #{@attribute.inspect}, but passed #{@direction.inspect} when only #{@allowlist.inspect} is supported. MSG end |