Exception: Pipeline::InvalidStatusError

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

Overview

Exception to represent an invalid state transition. Raised by execution methods on Pipeline::Base and Pipeline::Stage::Base. E.g. trying to transition a :failed pipeline to :in_progress.

Instance Method Summary collapse

Constructor Details

#initialize(status) ⇒ InvalidStatusError

The current status of pipeline or stage



10
11
12
# File 'lib/pipeline/errors.rb', line 10

def initialize(status)
  super("Status is already #{status.to_s.gsub(/_/, ' ')}")
end