vcheck.VersionError¶
-
exception
vcheck.VersionError(msg, errno=None)[source]¶ Custom exceptions specific to different errors while version-checking.
While version-checking, there are quite a few errors that can arise. Most are related to the state of the git repository not reliably reproducing a specific version. Different exceptions with varying
errnocodes can be raised. Codes are used to programmatically identify different types of failures.Parameters: msg : str
A short error message explaining the nature of the error.
errno : int
A preset number taken from the
vcheck.VersionErrorclass.Attributes
VERSION_UNMATCHED (code) Failure because the git repository’s version was not found. DIRTY (code) Failure because the git repository was dirty. NO_GIT (code) Failure because the module is not contained in a git repository. NO_TAGS (code) Failure because the git repository has no tags. NOT_AT_TAG (code) Failure because the git repository is not at any tag.