Exception: Angus::Remote::ServiceConfigurationNotFound

Inherits:
Exception
  • Object
show all
Defined in:
lib/angus/remote/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(code_name, version = nil) ⇒ ServiceConfigurationNotFound

Returns a new instance of ServiceConfigurationNotFound.



61
62
63
64
# File 'lib/angus/remote/exceptions.rb', line 61

def initialize(code_name, version = nil)
  @code_name = code_name
  @version = version
end

Instance Method Details

#messageObject



66
67
68
69
70
71
72
# File 'lib/angus/remote/exceptions.rb', line 66

def message
  if @version
    "Config for #@code_name v#@version not found."
  else
    "Config for #@code_name not found."
  end
end