Exception: Kontena::Errors::StandardErrorArray

Inherits:
StandardError
  • Object
show all
Defined in:
lib/kontena/errors.rb

Overview

An error with an array of additional details

Instance Attribute Summary

Attributes inherited from StandardError

#status

Instance Method Summary collapse

Constructor Details

#initialize(status, message, details) ⇒ StandardErrorArray

Returns a new instance of StandardErrorArray.

Parameters:



40
41
42
43
# File 'lib/kontena/errors.rb', line 40

def initialize(status, message, details)
  super(status, message)
  @details = details
end

Instance Method Details

#messageObject



45
46
47
# File 'lib/kontena/errors.rb', line 45

def message
  "#{super}:\n#{@details.map{|msg| "\t" + msg}.join("\n")}"
end