Exception: Graphiti::Errors::UnsupportedOperator
- Defined in:
- lib/graphiti/errors.rb
Instance Attribute Summary collapse
-
#filter_name ⇒ Object
readonly
Returns the value of attribute filter_name.
-
#operator ⇒ Object
readonly
Returns the value of attribute operator.
-
#resource ⇒ Object
readonly
Returns the value of attribute resource.
-
#supported ⇒ Object
readonly
Returns the value of attribute supported.
Instance Method Summary collapse
-
#initialize(resource, filter_name, supported, operator) ⇒ UnsupportedOperator
constructor
A new instance of UnsupportedOperator.
- #message ⇒ Object
Constructor Details
#initialize(resource, filter_name, supported, operator) ⇒ UnsupportedOperator
Returns a new instance of UnsupportedOperator.
121 122 123 124 125 126 |
# File 'lib/graphiti/errors.rb', line 121 def initialize(resource, filter_name, supported, operator) @resource = resource @filter_name = filter_name @supported = supported @operator = operator end |
Instance Attribute Details
#filter_name ⇒ Object (readonly)
Returns the value of attribute filter_name.
119 120 121 |
# File 'lib/graphiti/errors.rb', line 119 def filter_name @filter_name end |
#operator ⇒ Object (readonly)
Returns the value of attribute operator.
119 120 121 |
# File 'lib/graphiti/errors.rb', line 119 def operator @operator end |
#resource ⇒ Object (readonly)
Returns the value of attribute resource.
119 120 121 |
# File 'lib/graphiti/errors.rb', line 119 def resource @resource end |
#supported ⇒ Object (readonly)
Returns the value of attribute supported.
119 120 121 |
# File 'lib/graphiti/errors.rb', line 119 def supported @supported end |
Instance Method Details
#message ⇒ Object
128 129 130 131 132 |
# File 'lib/graphiti/errors.rb', line 128 def <<~MSG #{@resource.class}: Tried to filter #{@filter_name.inspect} on operator #{@operator.inspect}, but not supported! Supported operators are #{@supported}. MSG end |