lib/ratis/request.rb in ratis-2.5.2.5 vs lib/ratis/request.rb in ratis-2.5.2.6

- old
+ new

@@ -5,10 +5,11 @@ extend Savon::Model def initialize(config = nil) config = Ratis.config if config.nil? raise Errors::ConfigError('It appears that Ratis.configure has not been called') unless config.valid? + self.class.client do wsdl.endpoint = Ratis.config.endpoint wsdl.namespace = Ratis.config.namespace http.proxy = Ratis.config.proxy unless Ratis.config.proxy.blank? http.open_timeout = Ratis.config.timeout unless Ratis.config.timeout.blank? @@ -29,9 +30,11 @@ response rescue Errno::ECONNREFUSED => e raise Errno::ECONNREFUSED.new 'Refused request to ATIS SOAP server' rescue Savon::SOAP::Fault => e raise Errors::SoapError.new e + rescue Timeout::Error => e + raise "TIMEOUT!" end end end