Exception: Yoker::ServiceStartupError

Inherits:
Error
  • Object
show all
Defined in:
lib/yoker/errors.rb

Overview

Raised when service fails to start (Docker containers, etc.)

Instance Method Summary collapse

Constructor Details

#initialize(service_name, timeout = nil) ⇒ ServiceStartupError

Returns a new instance of ServiceStartupError.



104
105
106
107
108
# File 'lib/yoker/errors.rb', line 104

def initialize(service_name, timeout = nil)
  message = "Service '#{service_name}' failed to start"
  message += " within #{timeout} seconds" if timeout
  super(message)
end