buildtest.exceptions

Module Contents

exception buildtest.exceptions.BuildTestError(msg, *args)[source]

Bases: 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.

Parameters:
  • msg (str) – message to print

  • *args (list) – extra arguments to class for printing message

__str__()[source]

Return str(self).

exception buildtest.exceptions.BuildspecError(msg, buildspec=None)[source]

Bases: Exception

Exception if there is an issue with parsing a Buildspec or building test

Initialize self. See help(type(self)) for accurate signature.

get_exception()[source]
exception buildtest.exceptions.InvalidBuildspec(msg, buildspec=None)[source]

Bases: BuildspecError

This class raises exception for InvalidBuildspec

Initialize self. See help(type(self)) for accurate signature.

exception buildtest.exceptions.InvalidBuildspecSchemaType(msg, buildspec=None)[source]

Bases: BuildspecError

This exception is raised when buildspec contains invalid schema ‘type’

Initialize self. See help(type(self)) for accurate signature.

exception buildtest.exceptions.InvalidBuildspecExecutor(msg, buildspec=None)[source]

Bases: BuildspecError

This exception is raised when there is invalid ‘executor’ in buildspec

Initialize self. See help(type(self)) for accurate signature.

exception buildtest.exceptions.ExecutorError[source]

Bases: Exception

This class raises an error with Executor class and its operation

Initialize self. See help(type(self)) for accurate signature.

exception buildtest.exceptions.RuntimeFailure[source]

Bases: Exception

The RuntimeFailure exception is raised when their is an error running test

Initialize self. See help(type(self)) for accurate signature.

exception buildtest.exceptions.ConfigurationError(config, settings_file, msg)[source]

Bases: Exception

ConfigurationError is raised when their is an issue with buildtest configuration file

Initialize self. See help(type(self)) for accurate signature.

__str__()[source]

Return str(self).

exception buildtest.exceptions.JobSchedulerError[source]

Bases: Exception

JobSchedulerError is raised when their is an issue with submitting job to Job Scheduler

Initialize self. See help(type(self)) for accurate signature.