Debian Codegraph @

in_toto/exceptions.py

raw
1 # Copyright New York University and the in-toto contributors
2 # SPDX-License-Identifier: Apache-2.0
3
4 # TODO: Add module docstring and remove pylint exemption in in-toto/in-toto#126
5 # pylint: disable=missing-docstring
6 from securesystemslib.exceptions import Error
7
8
9 class SignatureVerificationError(Error):
10 """Indicates a signature verification Error."""
11
12
13 class LayoutExpiredError(Error):
14 """Indicates that the layout expired."""
15
16
17 class RuleVerificationError(Error):
18 """Indicates that artifact rule verification failed."""
19
20
21 class ThresholdVerificationError(Error):
22 """Indicates that signature threshold verification failed."""
23
24
25 class BadReturnValueError(Error):
26 """Indicates that a ran command exited with non-int or non-zero return
27 value."""
28
29
30 class LinkNotFoundError(Error):
31 """Indicates that a link file was not found."""
32
33
34 class UnsupportedKeyTypeError(Error):
35 """Indicates that the specified key type is not yet supported."""
36
37
38 class PrefixError(Error):
39 """Indicates that there is an error because of the prefixes passed."""
40
41
42 class InvalidMetadata(Error):
43 """Indicates that the metadata is not valid."""