chore: handle more exceptions (#2793)

This commit is contained in:
Sojan Jose 2021-08-12 01:32:22 +05:30 committed by GitHub
parent a065165bcb
commit 1f59205f20
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,7 @@
module ExceptionList module ExceptionList
REST_CLIENT_EXCEPTIONS = [RestClient::NotFound, RestClient::GatewayTimeout, RestClient::BadRequest, REST_CLIENT_EXCEPTIONS = [RestClient::NotFound, RestClient::GatewayTimeout, RestClient::BadRequest,
RestClient::MethodNotAllowed, RestClient::Forbidden, RestClient::InternalServerError, RestClient::MethodNotAllowed, RestClient::Forbidden, RestClient::InternalServerError,
RestClient::PayloadTooLarge, SocketError].freeze RestClient::Exceptions::OpenTimeout, RestClient::Exceptions::ReadTimeout, SocketError].freeze
SMTP_EXCEPTIONS = [ SMTP_EXCEPTIONS = [
Net::SMTPSyntaxError Net::SMTPSyntaxError
].freeze ].freeze