Sha256: 2698398cdee0504d1218c8c4b304c30144288389daecbffe22856448353da3e5

Contents?: true

Size: 1.44 KB

Versions: 3

Compression:

Stored size: 1.44 KB

Contents

module TestServer
  module Exceptions
    # user error
    class UserError < StandardError; end

    # internal error
    class InternalError < StandardError; end

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

    # file in repository not found
    class LocalFileIsUnknown < UserError; end

    # invalid path to access log
    class AccessLogPathInvalid < UserError; end

    # reload of configuration failed
    class ReloadOfConfigurationFailed < InternalError; end

    # raised if pid file does not exist
    class PidFileDoesNotExist < 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 listen statement is invalid
    class ServerListenStatementInvalid < UserError; end

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

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

    # raised if developer misses to define controller in parameter list
    class ControllerNotDefinedInParameterList < InternalError; end

    # raised if developer misses to define action for controller in parameter list
    class ActionNotDefinedInParameterList < InternalError; end

    # raised if developer misses to define role
    class RoleNotDefined < InternalError; end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
test_server-0.5.2 lib/test_server/exceptions.rb
test_server-0.5.1 lib/test_server/exceptions.rb
test_server-0.5.0 lib/test_server/exceptions.rb