openapi-core/openapi_core/exceptions.py

46 lines
655 B
Python
Raw Normal View History

2017-09-21 11:51:37 +00:00
"""OpenAPI core exceptions module"""
class OpenAPIError(Exception):
pass
class OpenAPIMappingError(OpenAPIError):
pass
class MissingParameterError(OpenAPIMappingError):
pass
2017-09-25 14:15:00 +00:00
class MissingPropertyError(OpenAPIMappingError):
pass
2017-09-21 11:51:37 +00:00
class InvalidContentTypeError(OpenAPIMappingError):
pass
2017-09-25 11:22:55 +00:00
2017-10-19 09:34:20 +00:00
class InvalidOperationError(OpenAPIMappingError):
pass
2017-09-25 11:22:55 +00:00
class InvalidServerError(OpenAPIMappingError):
pass
2017-09-25 14:15:00 +00:00
class InvalidValueType(OpenAPIMappingError):
pass
2017-10-17 13:23:26 +00:00
class InvalidValue(OpenAPIMappingError):
pass
class EmptyValue(OpenAPIMappingError):
pass
2017-09-25 14:15:00 +00:00
class UndefinedSchemaProperty(OpenAPIMappingError):
pass