pcvs.helpers.exceptions module
- exception pcvs.helpers.exceptions.BankException(reason, help_msg=None, dbg_info=None)[source]
Bases:
CommonExceptionBank-specific exceptions.
Constructor for generic errors.
- Parameters:
reason (
str) – the main error messageshelp_msg (
str|None) – a help message for the userdbg_info (
dict[str,str|None] |None) – a list of additional debug info
- exception NotFoundError(reason, help_msg=None, dbg_info=None)[source]
Bases:
PCVSExceptionBank not Found.
Constructor for generic errors.
- Parameters:
reason (
str) – the main error messageshelp_msg (
str|None) – a help message for the userdbg_info (
dict[str,str|None] |None) – a list of additional debug info
- exception ProjectNameError(reason, help_msg=None, dbg_info=None)[source]
Bases:
PCVSExceptionname is not a valid project under the given bank.
Constructor for generic errors.
- Parameters:
reason (
str) – the main error messageshelp_msg (
str|None) – a help message for the userdbg_info (
dict[str,str|None] |None) – a list of additional debug info
- exception pcvs.helpers.exceptions.CommonException(reason, help_msg=None, dbg_info=None)[source]
Bases:
PCVSExceptionGathers exceptions commonly encountered by more specific namespaces.
Constructor for generic errors.
- Parameters:
reason (
str) – the main error messageshelp_msg (
str|None) – a help message for the userdbg_info (
dict[str,str|None] |None) – a list of additional debug info
- exception AlreadyExistError(reason='Already Exist')[source]
Bases:
PCVSExceptionThe content already exist as it should.
Updated constructor
- exception IOError(reason, help_msg=None, dbg_info=None)[source]
Bases:
PCVSExceptionCommunication error (FS, process) while processing data.
Constructor for generic errors.
- Parameters:
reason (
str) – the main error messageshelp_msg (
str|None) – a help message for the userdbg_info (
dict[str,str|None] |None) – a list of additional debug info
- exception NotFoundError(reason, help_msg=None, dbg_info=None)[source]
Bases:
PCVSExceptionContent haven’t been found based on specifications.
Constructor for generic errors.
- Parameters:
reason (
str) – the main error messageshelp_msg (
str|None) – a help message for the userdbg_info (
dict[str,str|None] |None) – a list of additional debug info
- exception NotImplementedError(reason, help_msg=None, dbg_info=None)[source]
Bases:
PCVSExceptionMissing implementation for this particular feature.
Constructor for generic errors.
- Parameters:
reason (
str) – the main error messageshelp_msg (
str|None) – a help message for the userdbg_info (
dict[str,str|None] |None) – a list of additional debug info
- exception NotPCVSRelated(reason, help_msg=None, dbg_info=None)[source]
Bases:
PCVSExceptionConstructor for generic errors.
- Parameters:
reason (
str) – the main error messageshelp_msg (
str|None) – a help message for the userdbg_info (
dict[str,str|None] |None) – a list of additional debug info
- exception TimeoutError(reason, help_msg=None, dbg_info=None)[source]
Bases:
PCVSExceptionThe parent class timeout error.
Constructor for generic errors.
- Parameters:
reason (
str) – the main error messageshelp_msg (
str|None) – a help message for the userdbg_info (
dict[str,str|None] |None) – a list of additional debug info
- exception UnclassifiableError(reason, help_msg=None, dbg_info=None)[source]
Bases:
PCVSExceptionUnable to classify this common error.
Constructor for generic errors.
- Parameters:
reason (
str) – the main error messageshelp_msg (
str|None) – a help message for the userdbg_info (
dict[str,str|None] |None) – a list of additional debug info
- exception WIPError(reason, help_msg=None, dbg_info=None)[source]
Bases:
PCVSExceptionWork in Progress, not a real error.
Constructor for generic errors.
- Parameters:
reason (
str) – the main error messageshelp_msg (
str|None) – a help message for the userdbg_info (
dict[str,str|None] |None) – a list of additional debug info
- exception pcvs.helpers.exceptions.ConfigException(reason, help_msg=None, dbg_info=None)[source]
Bases:
CommonExceptionConfig-specific exceptions.
Constructor for generic errors.
- Parameters:
reason (
str) – the main error messageshelp_msg (
str|None) – a help message for the userdbg_info (
dict[str,str|None] |None) – a list of additional debug info
- exception pcvs.helpers.exceptions.GitException(reason, help_msg=None, dbg_info=None)[source]
Bases:
CommonExceptionConstructor for generic errors.
- Parameters:
reason (
str) – the main error messageshelp_msg (
str|None) – a help message for the userdbg_info (
dict[str,str|None] |None) – a list of additional debug info
- exception BadEntryError(reason, help_msg=None, dbg_info=None)[source]
Bases:
PCVSExceptionConstructor for generic errors.
- Parameters:
reason (
str) – the main error messageshelp_msg (
str|None) – a help message for the userdbg_info (
dict[str,str|None] |None) – a list of additional debug info
- exception pcvs.helpers.exceptions.LockException(reason, help_msg=None, dbg_info=None)[source]
Bases:
CommonExceptionLock-specific exceptions.
Constructor for generic errors.
- Parameters:
reason (
str) – the main error messageshelp_msg (
str|None) – a help message for the userdbg_info (
dict[str,str|None] |None) – a list of additional debug info
- exception BadOwnerError(reason, help_msg=None, dbg_info=None)[source]
Bases:
PCVSExceptionAttempt to manipulate the lock while the current process is not the owner.
Constructor for generic errors.
- Parameters:
reason (
str) – the main error messageshelp_msg (
str|None) – a help message for the userdbg_info (
dict[str,str|None] |None) – a list of additional debug info
- exception TimeoutError(reason, help_msg=None, dbg_info=None)[source]
Bases:
PCVSExceptionTimeout reached before lock.
Constructor for generic errors.
- Parameters:
reason (
str) – the main error messageshelp_msg (
str|None) – a help message for the userdbg_info (
dict[str,str|None] |None) – a list of additional debug info
- exception pcvs.helpers.exceptions.OrchestratorException(reason, help_msg=None, dbg_info=None)[source]
Bases:
CommonExceptionExecution-specific errors.
Constructor for generic errors.
- Parameters:
reason (
str) – the main error messageshelp_msg (
str|None) – a help message for the userdbg_info (
dict[str,str|None] |None) – a list of additional debug info
- exception CircularDependencyError(reason, help_msg=None, dbg_info=None)[source]
Bases:
PCVSExceptionCircular dep detected while processing job dep tree.
Constructor for generic errors.
- Parameters:
reason (
str) – the main error messageshelp_msg (
str|None) – a help message for the userdbg_info (
dict[str,str|None] |None) – a list of additional debug info
- exception UndefDependencyError(reason, help_msg=None, dbg_info=None)[source]
Bases:
PCVSExceptionDeclared job dep cannot be fully qualified, not defined.
Constructor for generic errors.
- Parameters:
reason (
str) – the main error messageshelp_msg (
str|None) – a help message for the userdbg_info (
dict[str,str|None] |None) – a list of additional debug info
- exception pcvs.helpers.exceptions.PCVSException(reason, help_msg=None, dbg_info=None)[source]
Bases:
ExceptionGeneric PCVS error (custom errors will inherit of this).
Constructor for generic errors.
- Parameters:
reason (
str) – the main error messageshelp_msg (
str|None) – a help message for the userdbg_info (
dict[str,str|None] |None) – a list of additional debug info
- exception pcvs.helpers.exceptions.PluginException(reason, help_msg=None, dbg_info=None)[source]
Bases:
CommonExceptionPlugin-related exceptions.
Constructor for generic errors.
- Parameters:
reason (
str) – the main error messageshelp_msg (
str|None) – a help message for the userdbg_info (
dict[str,str|None] |None) – a list of additional debug info
- exception BadStepError(reason, help_msg=None, dbg_info=None)[source]
Bases:
PCVSExceptiontargeted pass does not exist.
Constructor for generic errors.
- Parameters:
reason (
str) – the main error messageshelp_msg (
str|None) – a help message for the userdbg_info (
dict[str,str|None] |None) – a list of additional debug info
- exception LoadError(reason='Issue(s) while loading plugin')[source]
Bases:
PCVSExceptionUnable to load plugin directory.
Updated constructor
- exception pcvs.helpers.exceptions.ProfileException(reason, help_msg=None, dbg_info=None)[source]
Bases:
CommonExceptionProfile-specific exceptions.
Constructor for generic errors.
- Parameters:
reason (
str) – the main error messageshelp_msg (
str|None) – a help message for the userdbg_info (
dict[str,str|None] |None) – a list of additional debug info
- exception IncompleteError(reason, help_msg=None, dbg_info=None)[source]
Bases:
PCVSExceptionA configuration block is missing to build the profile.
Constructor for generic errors.
- Parameters:
reason (
str) – the main error messageshelp_msg (
str|None) – a help message for the userdbg_info (
dict[str,str|None] |None) – a list of additional debug info
- exception pcvs.helpers.exceptions.PublisherException(reason, help_msg=None, dbg_info=None)[source]
Bases:
CommonExceptionConstructor for generic errors.
- Parameters:
reason (
str) – the main error messageshelp_msg (
str|None) – a help message for the userdbg_info (
dict[str,str|None] |None) – a list of additional debug info
- exception AlreadyExistJobError(reason, help_msg=None, dbg_info=None)[source]
Bases:
PCVSExceptionA single ID leads to multiple jobs.
Constructor for generic errors.
- Parameters:
reason (
str) – the main error messageshelp_msg (
str|None) – a help message for the userdbg_info (
dict[str,str|None] |None) – a list of additional debug info
- exception BadMagicTokenError(reason, help_msg=None, dbg_info=None)[source]
Bases:
PCVSExceptionIssue with token stored to file to check consistency
Constructor for generic errors.
- Parameters:
reason (
str) – the main error messageshelp_msg (
str|None) – a help message for the userdbg_info (
dict[str,str|None] |None) – a list of additional debug info
- exception UnknownJobError(reason, help_msg=None, dbg_info=None)[source]
Bases:
PCVSExceptionUnable to identify a job by its ID
Constructor for generic errors.
- Parameters:
reason (
str) – the main error messageshelp_msg (
str|None) – a help message for the userdbg_info (
dict[str,str|None] |None) – a list of additional debug info
- exception pcvs.helpers.exceptions.RunException(reason, help_msg=None, dbg_info=None)[source]
Bases:
CommonExceptionRun-specific exceptions.
Constructor for generic errors.
- Parameters:
reason (
str) – the main error messageshelp_msg (
str|None) – a help message for the userdbg_info (
dict[str,str|None] |None) – a list of additional debug info
- exception InProgressError(path, lockfile, owner_pid, reason='Build directory currently used by another instance')[source]
Bases:
PCVSExceptionA run is currently occurring in the given dir.
Updated constructor
- exception NonZeroSetupScript(rc, err, file, reason='A setup script failed to complete')[source]
Bases:
PCVSExceptiona setup script (=pcvs.setup) completed but returned non-zero exit code.
Updated constructor
- exception ProgramError(reason='A program cannot be found')[source]
Bases:
PCVSExceptionThe given program cannot be found.
Updated constructor
- exception pcvs.helpers.exceptions.RunnerException(reason, help_msg=None, dbg_info=None)[source]
Bases:
CommonExceptionConstructor for generic errors.
- Parameters:
reason (
str) – the main error messageshelp_msg (
str|None) – a help message for the userdbg_info (
dict[str,str|None] |None) – a list of additional debug info
- exception LaunchError(reason, help_msg=None, dbg_info=None)[source]
Bases:
PCVSExceptionUnable to run a remote container
Constructor for generic errors.
- Parameters:
reason (
str) – the main error messageshelp_msg (
str|None) – a help message for the userdbg_info (
dict[str,str|None] |None) – a list of additional debug info
- exception pcvs.helpers.exceptions.TestException(reason, help_msg=None, dbg_info=None)[source]
Bases:
CommonExceptionTest-specific exceptions.
Constructor for generic errors.
- Parameters:
reason (
str) – the main error messageshelp_msg (
str|None) – a help message for the userdbg_info (
dict[str,str|None] |None) – a list of additional debug info
- exception TestExpressionError(input_files, reason='Issue(s) while parsing a Test Descriptor')[source]
Bases:
PCVSExceptionTest description is wrongly formatted.
Updated constructor
- exception pcvs.helpers.exceptions.ValidationException(reason, help_msg=None, dbg_info=None)[source]
Bases:
PCVSExceptionValidation-specific exceptions.
Constructor for generic errors.
- Parameters:
reason (
str) – the main error messageshelp_msg (
str|None) – a help message for the userdbg_info (
dict[str,str|None] |None) – a list of additional debug info
- exception FormatError(reason='Invalid format')[source]
Bases:
PCVSExceptionThe content does not comply the required format (schemes).
Updated constructor
- exception InvalidSchemeError(schema, reason='Invalid Scheme provided')[source]
Bases:
PCVSExceptionThe schema used to verify the template is not a valid YAML file.
Constructor for generic errors.
- Parameters:
reason (
str) – the main error messageshelp_msg – a help message for the user
dbg_info – a list of additional debug info
- exception SchemeError(name, content, error, reason='Fail to verify schema')[source]
Bases:
PCVSExceptionThe content is not a valid format (scheme).
Updated constructor
- exception SetupError(file)[source]
Bases:
PCVSExceptionAn error ocured when run pcvs.setup file.
Constructor for generic errors.
- Parameters:
reason – the main error messages
help_msg – a help message for the user
dbg_info – a list of additional debug info
- exception WrongTokenError(invalid_tokens, reason='Invalid token(s) used as Placeholders')[source]
Bases:
PCVSExceptionA unknown token is found in valided content
Updated constructor
- exception YamlError(file, content)[source]
Bases:
PCVSExceptionAn error ocured when parsing an Invalid yaml structure.
Updated Constructor