Exception: Clingon::ReservedKeywordError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/clingon/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#receivedObject (readonly)

Returns the value of attribute received.



60
61
62
# File 'lib/clingon/errors.rb', line 60

def received
  @received
end

#reservedObject (readonly)

Returns the value of attribute reserved.



60
61
62
# File 'lib/clingon/errors.rb', line 60

def reserved
  @reserved
end