Exception: UffizziCore::ContainerRegistryError

Inherits:
StandardError
  • Object
show all
Defined in:
app/errors/uffizzi_core/container_registry_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_keyObject (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

#errorsObject (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