pysys.exceptions module¶
Defines custom exceptions that can be thrown within the PySys framework.
-
exception
pysys.exceptions.
AbortExecution
(outcome, outcomeReason, callRecord=None)[source]¶ Bases:
Exception
Raised to abort execution of a test.
-
exception
pysys.exceptions.
ExecutableNotFoundException
(value)[source]¶ Bases:
Exception
Exception raised when an executable cannot be found.
-
exception
pysys.exceptions.
FileNotFoundException
(value)[source]¶ Bases:
Exception
Exception raised when a file cannot be found.
-
exception
pysys.exceptions.
IncorrectFileTypeException
(value)[source]¶ Bases:
Exception
Exception raised when the extension of a file is incorrect.
-
exception
pysys.exceptions.
InvalidDescriptorException
(value)[source]¶ Bases:
Exception
Exception raised when a testcase descriptor is invalid.
-
exception
pysys.exceptions.
InvalidXMLException
(value)[source]¶ Bases:
Exception
Exception raised when an input XML file is invalid.
-
exception
pysys.exceptions.
ProcessError
(value)[source]¶ Bases:
Exception
Exception raised when creating a process.
-
exception
pysys.exceptions.
ProcessTimeout
(value)[source]¶ Bases:
Exception
Exception raised when a process times out.
-
exception
pysys.exceptions.
UserError
(message)[source]¶ Bases:
Exception
Exception raised when the user has made a mistake, for example specifying a wrong value or providing an invalid file.
This exception should be raised with a user-friendly error message, and indicates that there is no need to display a Python stack trace. Do not use this exception type for non-user errors, in which case a stack trace could be important for debugging the problem.