Skip to content

Commit ec89ae7

Browse files
committed
wip
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
1 parent cbb7370 commit ec89ae7

4 files changed

Lines changed: 176 additions & 248 deletions

File tree

cyclonedx/exception/model.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ class CycloneDxModelException(CycloneDxException):
3030
pass
3131

3232

33+
class InvalidValueException(CycloneDxModelException):
34+
pass
35+
36+
3337
class InvalidLocaleTypeException(CycloneDxModelException):
3438
"""
3539
Raised when the supplied locale does not conform to ISO-639 specification.
@@ -131,3 +135,11 @@ class InvalidCreIdException(CycloneDxModelException):
131135
as defined at https://opencre.org/
132136
"""
133137
pass
138+
139+
140+
class InvalidConfidenceException(CycloneDxModelException):
141+
"""
142+
Raised when an invalid value is provided for a Confidence.
143+
The confidence of the evidence from 0 - 1, where 1 is 100% confidence.
144+
"""
145+
pass

0 commit comments

Comments
 (0)