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
27 28 29 30 |
|
log_and_exit(logger, raise_error=False)
Prints all relevant error information to stderr and exits.
Source code in sigstore/errors.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
|
NetworkError
Bases: Error
Raised when a connectivity-related issue occurs.
diagnostics()
Returns diagnostics for the error.
Source code in sigstore/errors.py
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
|
TUFError(message)
Bases: Error
Raised when a TUF error occurs.
Constructs a TUFError
.
Source code in sigstore/errors.py
80 81 82 |
|
diagnostics()
Returns diagnostics specialized to the wrapped TUF error.
Source code in sigstore/errors.py
90 91 92 93 94 95 96 97 98 99 100 101 |
|
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
107 108 109 |
|
RootError
Bases: Error
Raised when TUF cannot establish its root of trust.
diagnostics()
Returns diagnostics for the error.
Source code in sigstore/errors.py
115 116 117 118 119 120 |
|