Sha256: 8ac20bdafe4ef3f0a7726764dd0e8098c5678f4159b08184983b491143ee8ed3

Contents?: true

Size: 1.48 KB

Versions: 1

Compression:

Stored size: 1.48 KB

Contents

# encoding: utf-8
module ProxyTester
  # Exceptions
  module Exceptions
    # raised if user error occurred
    class UserError < StandardError; end

    # raised if an internal error occurred
    class InternalError < StandardError; end

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

    # raised if one tries to access a lockec config 
    class ConfigLocked < UserError; end

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

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

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

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

    # raised if proxy user does not exist
    class ProxyUserInvalid < UserError; end

    # raised if proxy user record is invalid (missing name, password)
    class UserRecordInvalid < UserError; end

    # raised if user file not found 
    class UserFileNotFound < UserError; end

    # raised if user file not found 
    class SyntaxInvalid < UserError; end

    # raised if pac file not found 
    class PacFileNotFound < UserError; end

    # raised if pac result is invalid
    class PacResultInvalid < UserError; end

    # raised if pac result is invalid
    class FetchUrlTimeout < UserError; end

    # raised if chosen proxy type is invalid
    class ProxyTypeInvalid < UserError; end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
proxy_tester-0.0.1 lib/proxy_tester/exceptions.rb