From 6735cad32b6e5e7a5dda516551bfafcf24c01da1 Mon Sep 17 00:00:00 2001 From: watsonian Date: Wed, 23 Mar 2011 16:02:17 -0700 Subject: Add ConnectionTimeout exception class. --- lib/net/ssh/errors.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/net/ssh/errors.rb b/lib/net/ssh/errors.rb index e653278..0ae0d1b 100644 --- a/lib/net/ssh/errors.rb +++ b/lib/net/ssh/errors.rb @@ -7,6 +7,9 @@ module Net; module SSH # public key authentication, password authentication, or whatever). class AuthenticationFailed < Exception; end + # This exception is raised when a connection attempt times out. + class ConnectionTimeout < Exception; end + # This exception is raised when the remote host has disconnected # unexpectedly. class Disconnect < Exception; end -- cgit v1.2.1