# encoding: utf-8 module LocalPac module ErrorMessages ErrorHandler.create( exception: StandardError, summary: 'errors.default.summary', details: 'errors.default.details', exit_code: 99, ) ErrorHandler.create( exception: Exceptions::ApiKeyInvalid, details: 'errors.invalid_api_key.details', summary: 'errors.invalid_api_key.summary', exit_code: 2, ) ErrorHandler.create( exception: Exceptions::PacFileInvalid, details: 'errors.invalid_pushed_pac_file.details', summary: 'errors.invalid_pushed_pac_file.summary', exit_code: 3, ) ErrorHandler.create( exception: Sinatra::Param::InvalidParameterError, details: 'errors.invalid_parameter.details', summary: 'errors.invalid_parameter.summary', exit_code: 4, ) ErrorHandler.create( exception: Exceptions::PidFileDoesNotExist, details: 'errors.invalid_proxy_pac.details', summary: 'errors.invalid_proxy_pac.summary', exit_code: 5, ) ErrorHandler.create( exception: Exceptions::GivenUrlInvalid, details: 'errors.invalid_url.details', summary: 'errors.invalid_url.summary', exit_code: 6, ) ErrorHandler.create( exception: Exceptions::ReloadOfLocalStorageFailed, details: 'errors.reload_of_local_storage_failed.details', summary: 'errors.reload_of_local_storage_failed.summary', exit_code: 7, ) ErrorHandler.create( exception: Exceptions::GitHookUnknown, details: 'errors.unknown_git_hook.details', summary: 'errors.unknown_git_hook.summary', exit_code: 8, ) ErrorHandler.create( exception: Exceptions::PacFileUnknown, details: 'errors.unknown_proxy_pac.details', summary: 'errors.unknown_proxy_pac.summary', exit_code: 9, ) ErrorHandler.create( exception: Exceptions::InternalError, details: 'errors.internal_error.details', summary: 'errors.internal_error.summary', exit_code: 10, ) ErrorHandler.create( exception: Exceptions::ServerListenStatementInvalid, details: 'errors.invalid_listen_statement.details', summary: 'errors.invalid_listen_statement.summary', exit_code: 11, ) ErrorHandler.create( exception: Exceptions::RepositoryDoesNotExist, details: 'errors.missing_git_repository.details', summary: 'errors.missing_git_repository.summary', exit_code: 12, ) ErrorHandler.create( exception: Exceptions::CommitDoesNotExist, details: 'errors.missing_git_commit.details', summary: 'errors.missing_git_commit.summary', exit_code: 13, ) ErrorHandler.create( exception: Exceptions::ConfigFileNotReadable, details: 'errors.unreadable_config_file.details', summary: 'errors.unreadable_config_file.summary', exit_code: 14, ) ErrorHandler.create( exception: Exceptions::UserError, details: 'errors.user_error.details', summary: 'errors.user_error.summary', exit_code: 15, ) ErrorHandler.create( exception: Exceptions::GivenTimeInvalid, details: 'errors.invalid_time.details', summary: 'errors.invalid_time.summary', exit_code: 16, ) ErrorHandler.create( exception: Exceptions::GivenClientIpInvalid, details: 'errors.invalid_client_ip.details', summary: 'errors.invalid_client_ip.summary', exit_code: 17, ) #ErrorHandler.create( # exception: # summary: # details: # exit_code: #) end end