Sha256: 0cbbbe159f4e3aa1669599cf1cecf6031840d7f0c0d5700f68da350b023e2d0d

Contents?: true

Size: 757 Bytes

Versions: 2

Compression:

Stored size: 757 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 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

2 entries across 2 versions & 1 rubygems

Version Path
mkit-0.3.0 lib/mkit/exceptions.rb
mkit-0.2.0 lib/mkit/exceptions.rb