Exception: Cuprum::Collections::Queries::UnknownOperatorException
- Inherits:
-
StandardError
- Object
- StandardError
- Cuprum::Collections::Queries::UnknownOperatorException
- Defined in:
- lib/cuprum/collections/queries.rb
Overview
Exception raised when an invalid operator is referenced.
Instance Method Summary collapse
-
#initialize(msg = nil, name = nil) ⇒ UnknownOperatorException
constructor
A new instance of UnknownOperatorException.
-
#name ⇒ String
The name of the invalid operator.
Constructor Details
#initialize(msg = nil, name = nil) ⇒ UnknownOperatorException
Returns a new instance of UnknownOperatorException.
31 32 33 34 35 |
# File 'lib/cuprum/collections/queries.rb', line 31 def initialize(msg = nil, name = nil) super(msg) @name = name end |
Instance Method Details
#name ⇒ String
Returns the name of the invalid operator.
38 39 40 |
# File 'lib/cuprum/collections/queries.rb', line 38 def name @name || cause&.name end |