lib/patron/error.rb in patron-0.6.0 vs lib/patron/error.rb in patron-0.6.1
- old
+ new
@@ -21,35 +21,39 @@
## OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
## THE SOFTWARE.
##
## -------------------------------------------------------------------
+
module Patron
# Base class for Patron exceptions.
class Error < StandardError; end
- # The URL you passed to Patron used a protocol that it does not support.
+ # Gets raised when the URL passed to Patron used a protocol that it does not support.
# This most likely the result of a misspelled protocol string.
class UnsupportedProtocol < Error; end
- # The URL was not properly formatted.
+ # Gets raised when a request is attempted with an unsupported SSL version.
+ class UnsupportedSSLVersion < Error; end
+
+ # Gets raised when the URL was not properly formatted.
class URLFormatError < Error; end
- # Could not resolve the remote host name.
+ # Gets raised when the remote host name could not be resolved.
class HostResolutionError < Error; end
- # Failed to connect to the remote host.
+ # Gets raised when failing to connect to the remote host.
class ConnectionFailed < Error; end
- # A file transfer was shorter or larger than expected.
+ # Gets raised when the response was shorter or larger than expected.
# This happens when the server first reports an expected transfer size,
# and then delivers data that doesn't match the previously given size.
class PartialFileError < Error; end
- # Operation timeout. The specified time-out period was reached.
+ # Gets raised on an operation timeout. The specified time-out period was reached.
class TimeoutError < Error; end
- # Too many redirects. When following redirects, Patron hit the maximum amount.
+ # Gets raised on too many redirects. When following redirects, Patron hit the maximum amount.
class TooManyRedirects < Error; end
end