Sha256: e1cd03dbd07e5db839e6c33e858613c90e2fcc476369dd8fe89ab77824dcd8a6

Contents?: true

Size: 1.34 KB

Versions: 8

Compression:

Stored size: 1.34 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
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
test_server-0.4.1 lib/test_server/exceptions.rb
test_server-0.4.0 lib/test_server/exceptions.rb
test_server-0.3.7 lib/test_server/exceptions.rb
test_server-0.3.6 lib/test_server/exceptions.rb
test_server-0.3.5 lib/test_server/exceptions.rb
test_server-0.3.4 lib/test_server/exceptions.rb
test_server-0.3.2 lib/test_server/exceptions.rb
test_server-0.3.1 lib/test_server/exceptions.rb