Exception: RegistryApiClient::JsonError

Inherits:
Exception
  • Object
show all
Defined in:
lib/docker_cake/registry_api_client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, response = nil) ⇒ JsonError

Returns a new instance of JsonError.



32
33
34
35
36
# File 'lib/docker_cake/registry_api_client.rb', line 32

def initialize(message, response = nil)
  super(message)
  @parent = message if message.is_a?(Exception)
  @response = response
end

Instance Attribute Details

#parentObject (readonly)

Returns the value of attribute parent.



31
32
33
# File 'lib/docker_cake/registry_api_client.rb', line 31

def parent
  @parent
end

#responseObject (readonly)

Returns the value of attribute response.



30
31
32
# File 'lib/docker_cake/registry_api_client.rb', line 30

def response
  @response
end