Errors
Exceptions.
Error
Bases: Exception
Base sigstore exception type. Defines helpers for diagnostics.
diagnostics()
Returns human-friendly error information.
Source code in sigstore/errors.py
29 30 31 32 | |
log_and_exit(logger, raise_error=False)
Prints all relevant error information to stderr and exits.
Source code in sigstore/errors.py
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | |
NetworkError
Bases: Error
Raised when a connectivity-related issue occurs.
diagnostics()
Returns diagnostics for the error.
Source code in sigstore/errors.py
56 57 58 | |
TUFError(message)
Bases: Error
Raised when a TUF error occurs.
Constructs a TUFError.
Source code in sigstore/errors.py
73 74 75 76 | |
diagnostics()
Returns diagnostics specialized to the wrapped TUF error.
Source code in sigstore/errors.py
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | |
MetadataError
Bases: Error
Raised when TUF metadata does not conform to the expected structure.
diagnostics()
Returns diagnostics for the error.
Source code in sigstore/errors.py
99 100 101 | |
RootError
Bases: Error
Raised when TUF cannot establish its root of trust.
diagnostics()
Returns diagnostics for the error.
Source code in sigstore/errors.py
107 108 109 110 111 112 113 | |
VerificationError
CertValidationError
Bases: VerificationError
Raised when a TSA certificate chain fails to validate during Sigstore verification.
This is used by CLI to hint that an incorrect Sigstore instance may have been used