Exception: Wakame::JsonRequester::ResponseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/wakame/runner/administrator_command.rb

Direct Known Subclasses

AuthenticationError, CommandError, ServerError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json_hash = nil, message_prefix = self.class.to_s) ⇒ ResponseError

Returns a new instance of ResponseError.



114
115
116
117
# File 'lib/wakame/runner/administrator_command.rb', line 114

def initialize(json_hash=nil, message_prefix=self.class.to_s)
  super(message_prefix + ":" + json_hash[0]["message"])
  @json_hash = json_hash
end

Instance Attribute Details

#json_hashObject (readonly)

Returns the value of attribute json_hash.



113
114
115
# File 'lib/wakame/runner/administrator_command.rb', line 113

def json_hash
  @json_hash
end