Exception: UffizziCore::ContainerRegistryError
- Inherits:
-
StandardError
- Object
- StandardError
- UffizziCore::ContainerRegistryError
- Defined in:
- app/errors/uffizzi_core/container_registry_error.rb
Instance Attribute Summary collapse
-
#error_key ⇒ Object
readonly
Returns the value of attribute error_key.
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(response) ⇒ ContainerRegistryError
constructor
A new instance of ContainerRegistryError.
Constructor Details
#initialize(response) ⇒ ContainerRegistryError
Returns a new instance of ContainerRegistryError.
6 7 8 9 10 11 12 |
# File 'app/errors/uffizzi_core/container_registry_error.rb', line 6 def initialize(response) prepared_errors = prepare_errors(response[:body], response[:status]) @error_key = UffizziCore::ComposeFile::ErrorsService::DOCKER_REGISTRY_CONTAINER_ERROR_KEY @errors = { @error_key => prepared_errors } super(prepared_errors.to_json) end |
Instance Attribute Details
#error_key ⇒ Object (readonly)
Returns the value of attribute error_key.
4 5 6 |
# File 'app/errors/uffizzi_core/container_registry_error.rb', line 4 def error_key @error_key end |
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
4 5 6 |
# File 'app/errors/uffizzi_core/container_registry_error.rb', line 4 def errors @errors end |