summaryrefslogtreecommitdiff
path: root/tempest_lib/exceptions.py
diff options
context:
space:
mode:
Diffstat (limited to 'tempest_lib/exceptions.py')
-rw-r--r--tempest_lib/exceptions.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tempest_lib/exceptions.py b/tempest_lib/exceptions.py
index 07952b6..90b0aca 100644
--- a/tempest_lib/exceptions.py
+++ b/tempest_lib/exceptions.py
@@ -155,3 +155,14 @@ class EndpointNotFound(TempestException):
class InvalidCredentials(TempestException):
message = "Invalid Credentials"
+
+
+class SSHTimeout(TempestException):
+ message = ("Connection to the %(host)s via SSH timed out.\n"
+ "User: %(user)s, Password: %(password)s")
+
+
+class SSHExecCommandFailed(TempestException):
+ """Raised when remotely executed command returns nonzero status."""
+ message = ("Command '%(command)s', exit status: %(exit_status)d, "
+ "Error:\n%(strerror)s")