Exception: Kontena::Errors::StandardErrorArray
- Inherits:
-
StandardError
- Object
- StandardError
- StandardError
- Kontena::Errors::StandardErrorArray
- Defined in:
- lib/kontena/errors.rb
Overview
An error with an array of additional details
Instance Attribute Summary
Attributes inherited from StandardError
Instance Method Summary collapse
-
#initialize(status, message, details) ⇒ StandardErrorArray
constructor
A new instance of StandardErrorArray.
- #message ⇒ Object
Constructor Details
#initialize(status, message, details) ⇒ StandardErrorArray
Returns a new instance of StandardErrorArray.
40 41 42 43 |
# File 'lib/kontena/errors.rb', line 40 def initialize(status, , details) super(status, ) @details = details end |
Instance Method Details
#message ⇒ Object
45 46 47 |
# File 'lib/kontena/errors.rb', line 45 def "#{super}:\n#{@details.map{|msg| "\t" + msg}.join("\n")}" end |