Exception: Kontena::Cli::MasterCodeExchanger::Error

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, message) ⇒ Error

Returns a new instance of Error.



7
8
9
10
# File 'lib/kontena/cli/master_code_exchanger.rb', line 7

def initialize(code, message)
  self.code = code
  super("#{code} #{message}")
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



5
6
7
# File 'lib/kontena/cli/master_code_exchanger.rb', line 5

def code
  @code
end