Sha256: d8a30e93d0813e5c9a107ea1b2e023de9a01bb726e832c1ccfe46b18e432de04

Contents?: true

Size: 511 Bytes

Versions: 15

Compression:

Stored size: 511 Bytes

Contents

module Pipeline
  class InvalidPipelineError < StandardError; end
  
  class InvalidStatusError < StandardError
    def initialize(status)
      super("Status is already #{status.to_s.gsub(/_/, ' ')}")
    end
  end

  class IrrecoverableError < StandardError; end

  class RecoverableError < StandardError
    def initialize(msg = nil, input_required = false)
      super(msg)
      @input_required = input_required
    end

    def input_required?
      @input_required
    end
  end

  extend(ApiMethods)
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
dtsato-pipeline-0.0.1 lib/pipeline/errors.rb
dtsato-pipeline-0.0.2 lib/pipeline/errors.rb
dtsato-pipeline-0.0.3 lib/pipeline/errors.rb
dtsato-pipeline-0.0.5 lib/pipeline/errors.rb
dtsato-pipeline-0.0.6 lib/pipeline/errors.rb
dtsato-pipeline-0.0.7 lib/pipeline/errors.rb
dtsato-pipeline-0.0.8 lib/pipeline/errors.rb
pipeline-0.0.8 lib/pipeline/errors.rb
pipeline-0.0.7 lib/pipeline/errors.rb
pipeline-0.0.6 lib/pipeline/errors.rb
pipeline-0.0.4 lib/pipeline/errors.rb
pipeline-0.0.5 lib/pipeline/errors.rb
pipeline-0.0.1 lib/pipeline/errors.rb
pipeline-0.0.2 lib/pipeline/errors.rb
pipeline-0.0.3 lib/pipeline/errors.rb