From dde8fa628483deec352e176cea8decdbf6bed7e8 Mon Sep 17 00:00:00 2001 From: Rodolfo Alonso Hernandez Date: Fri, 1 Jun 2018 12:21:20 +0100 Subject: Convert SSH custom exceptions to Yardstick exceptions JIRA: YARDSTICK-1215 Change-Id: I5ecfd3dccd91b07cd8de5309dfa1a372eff16ed0 Signed-off-by: Rodolfo Alonso Hernandez --- yardstick/common/exceptions.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'yardstick/common') diff --git a/yardstick/common/exceptions.py b/yardstick/common/exceptions.py index e6a1f1fa1..a9f9fffa5 100644 --- a/yardstick/common/exceptions.py +++ b/yardstick/common/exceptions.py @@ -137,6 +137,14 @@ class LibvirtQemuImageCreateError(YardstickException): '%(base_image)s. Error: %(error)s.') +class SSHError(YardstickException): + message = '%(error_msg)s' + + +class SSHTimeout(SSHError): + pass + + class ScenarioConfigContextNameNotFound(YardstickException): message = 'Context name "%(context_name)s" not found' -- cgit 1.2.3-korg