lib/patron/error.rb in patron-0.8.0 vs lib/patron/error.rb in patron-0.9.1
- old
+ new
@@ -34,10 +34,13 @@
class UnsupportedProtocol < Error; end
# Gets raised when a request is attempted with an unsupported SSL version.
class UnsupportedSSLVersion < Error; end
+ # Gets raised when a request is attempted with an unsupported HTTP version.
+ class UnsupportedHTTPVersion < Error; end
+
# Gets raised when the URL was not properly formatted.
class URLFormatError < Error; end
# Gets raised when the remote host name could not be resolved.
class HostResolutionError < Error; end
@@ -53,9 +56,12 @@
# Gets raised on an operation timeout. The specified time-out period was reached.
class TimeoutError < Error; end
# Gets raised on too many redirects. When following redirects, Patron hit the maximum amount.
class TooManyRedirects < Error; end
+
+ # Gets raised if the progress callback, or an interrupt, aborts the Curl perform() call
+ class Aborted < Error; end
# Gets raised when the server specifies an encoding that could not be found, or has an invalid name,
# or when the server "lies" about the encoding of the response body (such as can be the case
# when the server specifies an encoding in `Content-Type`) which the HTML generator then overrides
# with a `meta` element.