2020-10-11 14:52:21 +00:00
|
|
|
module ExceptionList
|
2021-03-27 06:57:48 +00:00
|
|
|
REST_CLIENT_EXCEPTIONS = [RestClient::NotFound, RestClient::GatewayTimeout, RestClient::BadRequest,
|
2021-08-11 11:10:28 +00:00
|
|
|
RestClient::MethodNotAllowed, RestClient::Forbidden, RestClient::InternalServerError,
|
2021-08-13 07:32:46 +00:00
|
|
|
RestClient::Exceptions::OpenTimeout, RestClient::Exceptions::ReadTimeout,
|
2021-12-22 19:25:49 +00:00
|
|
|
RestClient::TemporaryRedirect, RestClient::SSLCertificateNotVerified, RestClient::PaymentRequired,
|
|
|
|
RestClient::BadGateway, RestClient::Unauthorized, RestClient::PayloadTooLarge,
|
2021-08-31 14:15:11 +00:00
|
|
|
RestClient::MovedPermanently, RestClient::ServiceUnavailable, Errno::ECONNREFUSED, SocketError].freeze
|
2021-03-30 15:36:31 +00:00
|
|
|
SMTP_EXCEPTIONS = [
|
|
|
|
Net::SMTPSyntaxError
|
|
|
|
].freeze
|
2020-10-11 14:52:21 +00:00
|
|
|
end
|