Exception: Chutzen::Expression::LookupError
- Inherits:
-
StandardError
- Object
- StandardError
- StandardError
- Chutzen::Expression::LookupError
- Defined in:
- lib/chutzen/expression/lookup_error.rb
Overview
Raised when Chutzen can’t find a value in the job dictionary.
Instance Attribute Summary collapse
-
#dictionary ⇒ Object
readonly
Returns the value of attribute dictionary.
-
#expression ⇒ Object
readonly
Returns the value of attribute expression.
Instance Method Summary collapse
- #as_json ⇒ Object
-
#initialize(message, expression: nil, dictionary: nil) ⇒ LookupError
constructor
A new instance of LookupError.
Constructor Details
#initialize(message, expression: nil, dictionary: nil) ⇒ LookupError
Returns a new instance of LookupError.
9 10 11 12 13 |
# File 'lib/chutzen/expression/lookup_error.rb', line 9 def initialize(, expression: nil, dictionary: nil) super() @expression = expression @dictionary = dictionary end |
Instance Attribute Details
#dictionary ⇒ Object (readonly)
Returns the value of attribute dictionary.
7 8 9 |
# File 'lib/chutzen/expression/lookup_error.rb', line 7 def dictionary @dictionary end |
#expression ⇒ Object (readonly)
Returns the value of attribute expression.
7 8 9 |
# File 'lib/chutzen/expression/lookup_error.rb', line 7 def expression @expression end |
Instance Method Details
#as_json ⇒ Object
15 16 17 |
# File 'lib/chutzen/expression/lookup_error.rb', line 15 def as_json { 'error' => details } end |