class Aranha::AddressProcessor
Constants
- ARANHA_EXCEPTIONS
- CORE_EXCEPTIONS
- ERRNO_EXCEPTIONS
- HTTPCLIENT_EXCEPTIONS
- NETWORK_EXCEPTIONS
- NET_EXCEPTIONS
Public Class Methods
rescuable_error?(error)
click to toggle source
# File lib/aranha/address_processor.rb, line 21 def rescuable_error?(error) return true if NETWORK_EXCEPTIONS.any? { |klass| error.is_a?(klass) } error.cause.present? ? network_error?(error.cause) : false end
Public Instance Methods
rescuable_error?()
click to toggle source
# File lib/aranha/address_processor.rb, line 35 def rescuable_error? self.class.rescuable_error?(error) end
successful?()
click to toggle source
# File lib/aranha/address_processor.rb, line 31 def successful? error.blank? end
Private Instance Methods
error_uncached()
click to toggle source
# File lib/aranha/address_processor.rb, line 41 def error_uncached address.process nil rescue ::StandardError => e e end