summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwatsonian <watsonian@gmail.com>2011-03-23 16:02:17 -0700
committerwatsonian <watsonian@gmail.com>2011-03-23 16:02:17 -0700
commit6735cad32b6e5e7a5dda516551bfafcf24c01da1 (patch)
treed7b50c7530bf52e6716770ec8789dbf433d92b9c
parent07df0ed759fbf41b5cefb1c4fc24cbad08899040 (diff)
downloadnet-ssh-6735cad32b6e5e7a5dda516551bfafcf24c01da1.tar.gz
Add ConnectionTimeout exception class.
-rw-r--r--lib/net/ssh/errors.rb3
1 files changed, 3 insertions, 0 deletions
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