:py:mod:`buildtest.exceptions` ============================== .. py:module:: buildtest.exceptions Module Contents --------------- .. py:exception:: BuildTestError(msg, *args) Bases: :py:obj:`Exception` Class responsible for error handling in buildtest. This is a sub-class of Exception class. This class is used for printing error message when exception is raised. :param msg: message to print :type msg: str :param \*args: extra arguments to class for printing message :type \*args: list .. py:method:: __str__() Return str(self). .. py:exception:: BuildspecError(msg, buildspec=None) Bases: :py:obj:`Exception` Exception if there is an issue with parsing a Buildspec or building test Initialize self. See help(type(self)) for accurate signature. .. py:method:: get_exception() .. py:exception:: InvalidBuildspec(msg, buildspec=None) Bases: :py:obj:`BuildspecError` This class raises exception for InvalidBuildspec Initialize self. See help(type(self)) for accurate signature. .. py:exception:: InvalidBuildspecSchemaType(msg, buildspec=None) Bases: :py:obj:`BuildspecError` This exception is raised when buildspec contains invalid schema 'type' Initialize self. See help(type(self)) for accurate signature. .. py:exception:: InvalidBuildspecExecutor(msg, buildspec=None) Bases: :py:obj:`BuildspecError` This exception is raised when there is invalid 'executor' in buildspec Initialize self. See help(type(self)) for accurate signature. .. py:exception:: ExecutorError Bases: :py:obj:`Exception` This class raises an error with Executor class and its operation Initialize self. See help(type(self)) for accurate signature. .. py:exception:: RuntimeFailure Bases: :py:obj:`Exception` The RuntimeFailure exception is raised when their is an error running test Initialize self. See help(type(self)) for accurate signature. .. py:exception:: ConfigurationError(config, settings_file, msg) Bases: :py:obj:`Exception` ConfigurationError is raised when their is an issue with buildtest configuration file Initialize self. See help(type(self)) for accurate signature. .. py:method:: __str__() Return str(self). .. py:exception:: JobSchedulerError Bases: :py:obj:`Exception` JobSchedulerError is raised when their is an issue with submitting job to Job Scheduler Initialize self. See help(type(self)) for accurate signature.