Exception: Clingon::ReservedKeywordError
- Inherits:
-
StandardError
- Object
- StandardError
- Clingon::ReservedKeywordError
- Defined in:
- lib/clingon/errors.rb
Instance Attribute Summary collapse
-
#received ⇒ Object
readonly
Returns the value of attribute received.
-
#reserved ⇒ Object
readonly
Returns the value of attribute reserved.
Instance Method Summary collapse
-
#initialize(payload) ⇒ ReservedKeywordError
constructor
A new instance of ReservedKeywordError.
Constructor Details
#initialize(payload) ⇒ ReservedKeywordError
Returns a new instance of ReservedKeywordError.
61 62 63 64 65 66 |
# File 'lib/clingon/errors.rb', line 61 def initialize(payload) @received = payload[:received] @reserved = payload[:reserved] msg = "Value #{received} is a reserved keyword" super(msg) end |
Instance Attribute Details
#received ⇒ Object (readonly)
Returns the value of attribute received.
60 61 62 |
# File 'lib/clingon/errors.rb', line 60 def received @received end |
#reserved ⇒ Object (readonly)
Returns the value of attribute reserved.
60 61 62 |
# File 'lib/clingon/errors.rb', line 60 def reserved @reserved end |