x264 source for verification 2026-05-22
This commit is contained in:
63
tools/digress/errors.py
Normal file
63
tools/digress/errors.py
Normal file
@@ -0,0 +1,63 @@
|
||||
"""
|
||||
Digress errors.
|
||||
"""
|
||||
|
||||
class DigressError(Exception):
|
||||
"""
|
||||
Digress error base class.
|
||||
"""
|
||||
|
||||
class NoSuchTestError(DigressError):
|
||||
"""
|
||||
Raised when no such test exists.
|
||||
"""
|
||||
|
||||
class DisabledTestError(DigressError):
|
||||
"""
|
||||
Test is disabled.
|
||||
"""
|
||||
|
||||
class SkippedTestError(DigressError):
|
||||
"""
|
||||
Test is marked as skipped.
|
||||
"""
|
||||
|
||||
class DisabledCaseError(DigressError):
|
||||
"""
|
||||
Case is marked as disabled.
|
||||
"""
|
||||
|
||||
class SkippedCaseError(DigressError):
|
||||
"""
|
||||
Case is marked as skipped.
|
||||
"""
|
||||
|
||||
class FailedTestError(DigressError):
|
||||
"""
|
||||
Test failed.
|
||||
"""
|
||||
|
||||
class ComparisonError(DigressError):
|
||||
"""
|
||||
Comparison failed.
|
||||
"""
|
||||
|
||||
class IncomparableError(DigressError):
|
||||
"""
|
||||
Values cannot be compared.
|
||||
"""
|
||||
|
||||
class AlreadyRunError(DigressError):
|
||||
"""
|
||||
Test/case has already been run.
|
||||
"""
|
||||
|
||||
class SCMError(DigressError):
|
||||
"""
|
||||
Error occurred in SCM.
|
||||
"""
|
||||
def __init__(self, message):
|
||||
self.message = message.replace("\n", " ")
|
||||
|
||||
def __str__(self):
|
||||
return self.message
|
||||
Reference in New Issue
Block a user