Sha256: 053a66b9b6934c3a9f2b6e81f66011f5f6e6878e3da6d1d23f7bf3697be2ccef
Contents?: true
Size: 795 Bytes
Versions: 2
Compression:
Stored size: 795 Bytes
Contents
module Http module Exceptions class Configuration DEFAULT_EXCEPTIONS_TO_CONVERT = [ SocketError, Errno::ETIMEDOUT, (Net.const_defined?(:ReadTimeout) ? Net::ReadTimeout : EOFError), (Net.const_defined?(:OpenTimeout) ? Net::OpenTimeout : EOFError), Net::ProtocolError, Errno::ECONNREFUSED, Errno::EHOSTDOWN, Errno::ECONNRESET, Errno::ENETUNREACH, Errno::EHOSTUNREACH, Errno::ECONNABORTED, OpenSSL::SSL::SSLError, EOFError, ].uniq.freeze # Exception classes to be converted to Http::Exceptions::HttpException attr_accessor :exceptions_to_convert def initialize self.exceptions_to_convert = DEFAULT_EXCEPTIONS_TO_CONVERT end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
http-exceptions-0.1.1 | lib/http/exceptions/configuration.rb |
http-exceptions-0.1.0 | lib/http/exceptions/configuration.rb |