Sha256: 71f57edc0d9f534e2278923d06cc4b213e74e639449552e5e7d60f5862139948

Contents?: true

Size: 1.72 KB

Versions: 2

Compression:

Stored size: 1.72 KB

Contents

module LocalPac
  module Exceptions
    # raised if an internal error occured
    class InternalError < StandardError; end

    # raised if an error is occured which should be visible by the user
    class UserError < StandardError; end

    # raise if there are template syntax errrors
    class ErbTemplateHasSyntaxErrors < InternalError; end

    # raised if Template does not exist
    class ErbTemplateIsUnknown < InternalError; end

    # raised if Template does not exist
    class ConfigFileNotReadable < UserError; end

    # raised if listen statement is invalid
    class ServerListenStatementInvalid < UserError; end

    # raised if reload of local storage failed
    class ReloadOfLocalStorageFailed < UserError; end

    # raised if entered url is invalid
    class URLToSearchForInvalid < UserError; end

    # raised if git hook cannot be found
    class GitHookUnknown < UserError; end

    # raised if pac file cannot be found
    class PacFileUnknown < UserError; end

    # raised if pac file is invalid
    class PacFileInvalid < UserError; end

    # raised if api key is invalid
    class ApiKeyInvalid < UserError; end

    # raised if request is invalid
    class GivenUrlInvalid < UserError; end

    # raised if request is invalid
    class GivenTimeInvalid < UserError; end

    # raised if request is invalid
    class GivenClientIpInvalid < UserError; end

    # raised if pid file does not exist
    class PidFileDoesNotExist < UserError; end

    # raised if repository does not exist
    class RepositoryDoesNotExist < UserError; end

    # raised if commit does not exist
    class CommitDoesNotExist < InternalError; end

    # raised if variable cannot be looked up
    class VariableUnknown < InternalError; end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
local_pac-0.9.0 lib/local_pac/exceptions.rb
local_pac-0.7.0 lib/local_pac/exceptions.rb