Exception: RegistryApiClient::JsonError
- Inherits:
-
Exception
- Object
- Exception
- RegistryApiClient::JsonError
- Defined in:
- lib/docker_cake/registry_api_client.rb
Instance Attribute Summary collapse
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(message, response = nil) ⇒ JsonError
constructor
A new instance of JsonError.
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(, response = nil) super() @parent = if .is_a?(Exception) @response = response end |
Instance Attribute Details
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
31 32 33 |
# File 'lib/docker_cake/registry_api_client.rb', line 31 def parent @parent end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
30 31 32 |
# File 'lib/docker_cake/registry_api_client.rb', line 30 def response @response end |