rename package name from ate to httprunner

This commit is contained in:
httprunner
2017-11-07 11:01:23 +08:00
parent 15ee12af50
commit e8db476867
29 changed files with 53 additions and 51 deletions

48
httprunner/exception.py Normal file
View File

@@ -0,0 +1,48 @@
#coding: utf-8
import json
try:
FileNotFoundError = FileNotFoundError
except NameError:
FileNotFoundError = IOError
try:
JSONDecodeError = json.decoder.JSONDecodeError
except AttributeError:
JSONDecodeError = ValueError
class MyBaseError(BaseException):
pass
class FileFormatError(MyBaseError):
pass
class ParamsError(MyBaseError):
pass
class ResponseError(MyBaseError):
pass
class ParseResponseError(MyBaseError):
pass
class ValidationError(MyBaseError):
pass
class NotFoundError(MyBaseError):
pass
class FunctionNotFound(NotFoundError):
pass
class VariableNotFound(NotFoundError):
pass
class ApiNotFound(NotFoundError):
pass
class SuiteNotFound(NotFoundError):
pass
class TestcaseNotFound(NotFoundError):
pass