ExceptionsΒΆ
VCheck use the custom VersionError exceptions, which are used to raise exceptions particular to the VCheck process:
VersionError(msg[, errno]) |
Custom exceptions specific to different errors while version-checking. |
They have two useful, a msg and an errno that can be accessed:
Example
Version-checking VCheck itself:
>>> ve = vcheck.VersionError('Repo for module is dirty ' \
... '(changes have been made); ' \
... 'version not well-defined.', \
... errno=vcheck.VersionError.DIRTY)
>>> ve.msg
'Repo for module is dirty (changes have been made); version not well-defined.'
>>> ve.errno
2