Sha256: b9f0577b76bb645c96d81a7e1cf10c20e85725038ea45d1928c65e16233d587d

Contents?: true

Size: 881 Bytes

Versions: 14

Compression:

Stored size: 881 Bytes

Contents

module MKIt
  class BaseException < Exception
    attr_reader :error_code
    def initialize(error_code, message = nil)
      super(message)
      @error_code = error_code
    end
  end

  class ServiceAlreadyExists < BaseException
    def initialize(message = nil)
      super(409, message)
    end
  end
  class ServiceNameMismatch < BaseException
    def initialize(message = nil)
      super(400, message)
    end
  end
  class InvalidPortsConfiguration < BaseException
    def initialize(message = nil)
      super(400, message)
    end
  end
  class ServiceNotFoundException < StandardError; end
  class PodNotFoundException     < StandardError; end
  class AppAlreadyDeployedException < StandardError; end
  class InvalidPortMappingTypeException < StandardError; end

  class PoolExaustedException < StandardError; end

  class CmdRunnerException < StandardError; end

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
mkit-0.9.0 lib/mkit/exceptions.rb
mkit-0.8.0 lib/mkit/exceptions.rb
mkit-0.7.2 lib/mkit/exceptions.rb
mkit-0.7.1 lib/mkit/exceptions.rb
mkit-0.7.0 lib/mkit/exceptions.rb
mkit-0.6.3 lib/mkit/exceptions.rb
mkit-0.6.2 lib/mkit/exceptions.rb
mkit-0.6.1 lib/mkit/exceptions.rb
mkit-0.6.0 lib/mkit/exceptions.rb
mkit-0.5.0 lib/mkit/exceptions.rb
mkit-0.4.3 lib/mkit/exceptions.rb
mkit-0.4.2 lib/mkit/exceptions.rb
mkit-0.4.1 lib/mkit/exceptions.rb
mkit-0.4.0 lib/mkit/exceptions.rb