mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 19:39:44 +08:00
55 lines
910 B
Python
55 lines
910 B
Python
# encoding: utf-8
|
|
|
|
from httprunner.compat import JSONDecodeError, FileNotFoundError
|
|
|
|
""" failure type exceptions
|
|
these exceptions will mark test as failure
|
|
"""
|
|
|
|
class MyBaseFailure(Exception):
|
|
pass
|
|
|
|
class ValidationFailure(MyBaseFailure):
|
|
pass
|
|
|
|
class ExtractFailure(MyBaseFailure):
|
|
pass
|
|
|
|
class SetupHooksFailure(MyBaseFailure):
|
|
pass
|
|
|
|
class TeardownHooksFailure(MyBaseFailure):
|
|
pass
|
|
|
|
|
|
""" error type exceptions
|
|
these exceptions will mark test as error
|
|
"""
|
|
|
|
class MyBaseError(Exception):
|
|
pass
|
|
|
|
class FileFormatError(MyBaseError):
|
|
pass
|
|
|
|
class ParamsError(MyBaseError):
|
|
pass
|
|
|
|
class NotFoundError(MyBaseError):
|
|
pass
|
|
|
|
class FileNotFound(FileNotFoundError, NotFoundError):
|
|
pass
|
|
|
|
class FunctionNotFound(NotFoundError):
|
|
pass
|
|
|
|
class VariableNotFound(NotFoundError):
|
|
pass
|
|
|
|
class ApiNotFound(NotFoundError):
|
|
pass
|
|
|
|
class TestcaseNotFound(NotFoundError):
|
|
pass
|