mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-31 02:57:57 +00:00 
			
		
		
		
	 bb37f7b263
			
		
	
	bb37f7b263
	
	
	
		
			
			If a contract contains an invalid email address, the sidekiq jobs for conversation continuity would error out. handling this exception gracefully.
		
			
				
	
	
		
			9 lines
		
	
	
		
			474 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			474 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| module ExceptionList
 | |
|   URI_EXCEPTIONS = [Errno::ETIMEDOUT, Errno::ECONNREFUSED, URI::InvalidURIError, Net::OpenTimeout, SocketError, OpenURI::HTTPError].freeze
 | |
|   REST_CLIENT_EXCEPTIONS = [RestClient::NotFound, RestClient::GatewayTimeout, RestClient::BadRequest,
 | |
|                             RestClient::MethodNotAllowed, RestClient::Forbidden, RestClient::InternalServerError, RestClient::PayloadTooLarge].freeze
 | |
|   SMTP_EXCEPTIONS = [
 | |
|     Net::SMTPSyntaxError
 | |
|   ].freeze
 | |
| end
 |