diff options
author | watsonian <watsonian@gmail.com> | 2011-03-23 16:02:17 -0700 |
---|---|---|
committer | watsonian <watsonian@gmail.com> | 2011-03-23 16:02:17 -0700 |
commit | 6735cad32b6e5e7a5dda516551bfafcf24c01da1 (patch) | |
tree | d7b50c7530bf52e6716770ec8789dbf433d92b9c | |
parent | 07df0ed759fbf41b5cefb1c4fc24cbad08899040 (diff) | |
download | net-ssh-6735cad32b6e5e7a5dda516551bfafcf24c01da1.tar.gz |
Add ConnectionTimeout exception class.
-rw-r--r-- | lib/net/ssh/errors.rb | 3 |
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 |