pcvs.helpers.exceptions module

class pcvs.helpers.exceptions.BankException[source]

Bases: CommonException

Bank-specific exceptions.

exception ProjectNameError(err_msg='Unkown error', help_msg='Please check pcvs --help for more information.', dbg_info={})[source]

Bases: GenericError

name is not a valid project under the given bank.

class pcvs.helpers.exceptions.CommonException[source]

Bases: object

Gathers exceptions commonly encountered by more specific namespaces.

exception AlreadyExistError(msg='Invalid format', **kwargs)[source]

Bases: GenericError

The content already exist as it should.

exception BadTokenError(err_msg='Unkown error', help_msg='Please check pcvs --help for more information.', dbg_info={})[source]

Bases: GenericError

Badly formatted string, unable to parse.

exception IOError(err_msg='Unkown error', help_msg='Please check pcvs --help for more information.', dbg_info={})[source]

Bases: GenericError

Communication error (FS, process) while processing data.

exception NotFoundError(err_msg='Unkown error', help_msg='Please check pcvs --help for more information.', dbg_info={})[source]

Bases: GenericError

Content haven’t been found based on specifications.

exception NotImplementedError(err_msg='Unkown error', help_msg='Please check pcvs --help for more information.', dbg_info={})[source]

Bases: GenericError

Missing implementation for this particular feature.

exception TimeoutError(err_msg='Unkown error', help_msg='Please check pcvs --help for more information.', dbg_info={})[source]

Bases: GenericError

The parent class timeout error.

exception UnclassifiableError(err_msg='Unkown error', help_msg='Please check pcvs --help for more information.', dbg_info={})[source]

Bases: GenericError

Unable to classify this common error.

exception WIPError(err_msg='Unkown error', help_msg='Please check pcvs --help for more information.', dbg_info={})[source]

Bases: GenericError

Work in Progress, not a real error.

class pcvs.helpers.exceptions.ConfigException[source]

Bases: CommonException

Config-specific exceptions.

exception pcvs.helpers.exceptions.GenericError(err_msg='Unkown error', help_msg='Please check pcvs --help for more information.', dbg_info={})[source]

Bases: Exception

Generic error (custom errors will inherit of this).

property dbg

returns the extra infos of the exceptions (if any).

Returns

only the debug infos.

Return type

str

property dbg_str

Stringify the debug infos. These infos are stored as a dict initially.

return

a itemized string.

rtype

str

property err

returns the error part of the exceptions.

Returns

only the error part

Return type

str

property help

returns the help part of the exceptions.

Returns

only the help part

Return type

str

class pcvs.helpers.exceptions.GitException[source]

Bases: CommonException

class pcvs.helpers.exceptions.LockException[source]

Bases: CommonException

Lock-specific exceptions.

exception BadOwnerError(err_msg='Unkown error', help_msg='Please check pcvs --help for more information.', dbg_info={})[source]

Bases: GenericError

Attempt to manipulate the lock while the current process is not the owner.

exception TimeoutError(err_msg='Unkown error', help_msg='Please check pcvs --help for more information.', dbg_info={})[source]

Bases: GenericError

Timeout reached before lock.

class pcvs.helpers.exceptions.OrchestratorException[source]

Bases: CommonException

Execution-specific errors.

exception CircularDependencyError(err_msg='Unkown error', help_msg='Please check pcvs --help for more information.', dbg_info={})[source]

Bases: GenericError

Circular dep detected while processing job dep tree.

exception UndefDependencyError(err_msg='Unkown error', help_msg='Please check pcvs --help for more information.', dbg_info={})[source]

Bases: GenericError

Declared job dep cannot be fully qualified, not defined.

class pcvs.helpers.exceptions.PluginException[source]

Bases: CommonException

Plugin-related exceptions.

exception BadStepError(err_msg='Unkown error', help_msg='Please check pcvs --help for more information.', dbg_info={})[source]

Bases: GenericError

targeted pass does not exist.

exception LoadError(err_msg='Unkown error', help_msg='Please check pcvs --help for more information.', dbg_info={})[source]

Bases: GenericError

Unable to load plugin directory.

class pcvs.helpers.exceptions.ProfileException[source]

Bases: CommonException

Profile-specific exceptions.

exception IncompleteError(err_msg='Unkown error', help_msg='Please check pcvs --help for more information.', dbg_info={})[source]

Bases: GenericError

A configuration block is missing to build the profile.

class pcvs.helpers.exceptions.RunException[source]

Bases: CommonException

Run-specific exceptions.

exception InProgressError(msg='Execution in progress in this build directory', **kwargs)[source]

Bases: GenericError

A run is currently occuring in the given dir.

exception ProgramError(msg='Program cannot be found', **kwargs)[source]

Bases: GenericError

The given program cannot be found.

exception TestUnfoldError(msg='Issue(s) while parsing test input', **kwargs)[source]

Bases: GenericError

Issue raised during processing test files.

class pcvs.helpers.exceptions.SpackException[source]

Bases: CommonException

class pcvs.helpers.exceptions.TestException[source]

Bases: CommonException

Test-specific exceptions.

exception DynamicProcessError(err_msg='Unkown error', help_msg='Please check pcvs --help for more information.', dbg_info={})[source]

Bases: GenericError

Test File is not properly formatted.

exception TDFormatError(err_msg='Unkown error', help_msg='Please check pcvs --help for more information.', dbg_info={})[source]

Bases: GenericError

Test description is wrongly formatted.

class pcvs.helpers.exceptions.ValidationException[source]

Bases: CommonException

Validation-specific exceptions.

exception FormatError(msg='Invalid format', **kwargs)[source]

Bases: GenericError

The content does not comply the required format (schemes).

exception SchemeError(msg='Invalid Scheme provided', **kwargs)[source]

Bases: GenericError

The content is not a valid format (scheme).