Sha256: fa9ec3c6e5b70b5cb08c185d34c19be709026f0644a3232dc01ca0e9e24e9604

Contents?: true

Size: 1.06 KB

Versions: 9

Compression:

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
test_server-0.2.4 lib/test_server/exceptions.rb
test_server-0.2.3 lib/test_server/exceptions.rb
test_server-0.2.2 lib/test_server/exceptions.rb
test_server-0.2.1 lib/test_server/exceptions.rb
test_server-0.2.0 lib/test_server/exceptions.rb
test_server-0.1.2 lib/test_server/exceptions.rb
test_server-0.1.1 lib/test_server/exceptions.rb
test_server-0.1.0 lib/test_server/exceptions.rb
test_server-0.0.11 lib/test_server/exceptions.rb