Exception: StepFailureException

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/shiplane/build.rb

Instance Method Summary collapse

Constructor Details

#initialize(command, artifact_name, error_message: nil) ⇒ StepFailureException

Returns a new instance of StepFailureException.



217
218
219
220
# File 'lib/shiplane/build.rb', line 217

def initialize(command, artifact_name, error_message: nil)
  message = "Command [#{command}] failed for artifact: #{artifact_name}#{error_message ? "\nError Message Received: #{error_message}" : ''}" if artifact_name
  super(message)
end