Exception: Hoosegow::ImageBuildError
- Defined in:
- lib/hoosegow/exceptions.rb
Overview
Errors while building the Docker image.
Instance Attribute Summary collapse
-
#detail ⇒ Object
readonly
The error details from docker.
Instance Method Summary collapse
-
#initialize(message) ⇒ ImageBuildError
constructor
A new instance of ImageBuildError.
Constructor Details
#initialize(message) ⇒ ImageBuildError
Returns a new instance of ImageBuildError.
7 8 9 10 11 12 13 |
# File 'lib/hoosegow/exceptions.rb', line 7 def initialize() if .is_a?(Hash) @detail = ['errorDetail'] = ['error'] end super() end |
Instance Attribute Details
#detail ⇒ Object (readonly)
The error details from docker.
Example:
{"code" => 127, "message" => "The command [/bin/sh -c boom] returned a non-zero code: 127"}
19 20 21 |
# File 'lib/hoosegow/exceptions.rb', line 19 def detail @detail end |