From 9e7e987010724f2b9c649c8c5885b7820f8e4794 Mon Sep 17 00:00:00 2001 From: Lucas Meneghel Rodrigues Date: Mon, 28 Jul 2014 20:03:33 -0300 Subject: [PATCH] avocado.core.exceptions: Add OptionValidationError So we can let the test runner to notify the user of incorrect options passed in. Signed-off-by: Lucas Meneghel Rodrigues --- avocado/core/exceptions.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/avocado/core/exceptions.py b/avocado/core/exceptions.py index 3f11a096..88349eb1 100644 --- a/avocado/core/exceptions.py +++ b/avocado/core/exceptions.py @@ -36,6 +36,14 @@ class JobError(Exception): status = "ERROR" +class OptionValidationError(Exception): + + """ + An invalid option was passed to the test runner + """ + status = "ERROR" + + class TestBaseException(Exception): """ -- GitLab