pysys.exceptions

Exceptions used and raised by PySys methods.

AbortExecution

class pysys.exceptions.AbortExecution(outcome, outcomeReason, callRecord=None)[source]

Bases: Exception

Raised to abort execution of a test.

FileNotFoundException

class pysys.exceptions.FileNotFoundException(value)[source]

Bases: Exception

Exception raised when a file cannot be found.

IncorrectFileTypeException

class pysys.exceptions.IncorrectFileTypeException(value)[source]

Bases: Exception

Exception raised when the extension of a file is incorrect.

ExecutableNotFoundException

class pysys.exceptions.ExecutableNotFoundException(value)[source]

Bases: Exception

Exception raised when an executable cannot be found.

ProcessError

class pysys.exceptions.ProcessError(value)[source]

Bases: Exception

Exception raised when creating a process.

ProcessTimeout

class pysys.exceptions.ProcessTimeout(value)[source]

Bases: pysys.exceptions.AbortExecution

Exception raised when a process times out.

InvalidDescriptorException

class pysys.exceptions.InvalidDescriptorException(value)[source]

Bases: Exception

Exception raised when a testcase descriptor is invalid.

InvalidXMLException

class pysys.exceptions.InvalidXMLException(value)[source]

Bases: Exception

Exception raised when an input XML file is invalid.

UserError

class 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.