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.
102 103 104 105 106 107 |
# File 'lib/graphiti/errors.rb', line 102 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.
100 101 102 |
# File 'lib/graphiti/errors.rb', line 100 def filter_name @filter_name end |
#operator ⇒ Object (readonly)
Returns the value of attribute operator.
100 101 102 |
# File 'lib/graphiti/errors.rb', line 100 def operator @operator end |
#resource ⇒ Object (readonly)
Returns the value of attribute resource.
100 101 102 |
# File 'lib/graphiti/errors.rb', line 100 def resource @resource end |
#supported ⇒ Object (readonly)
Returns the value of attribute supported.
100 101 102 |
# File 'lib/graphiti/errors.rb', line 100 def supported @supported end |
Instance Method Details
#message ⇒ Object
109 110 111 112 113 |
# File 'lib/graphiti/errors.rb', line 109 def <<~MSG #{@resource.class}: Tried to filter #{@filter_name.inspect} on operator #{@operator.inspect}, but not supported! Supported operators are #{@supported}. MSG end |