openapi-core/openapi_core/exceptions.py

74 lines
1 KiB
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
2017-11-03 11:18:48 +00:00
class OpenAPIServerError(OpenAPIMappingError):
2017-09-21 11:51:37 +00:00
pass
2017-11-03 11:18:48 +00:00
class OpenAPIOperationError(OpenAPIMappingError):
2017-11-02 16:05:25 +00:00
pass
2017-11-03 11:18:48 +00:00
class InvalidValueType(OpenAPIMappingError):
2017-09-25 14:15:00 +00:00
pass
2017-11-03 11:18:48 +00:00
class OpenAPIParameterError(OpenAPIMappingError):
2017-09-21 11:51:37 +00:00
pass
2017-09-25 11:22:55 +00:00
2017-11-03 11:18:48 +00:00
class OpenAPIBodyError(OpenAPIMappingError):
2017-10-19 09:34:20 +00:00
pass
2017-11-03 11:18:48 +00:00
class InvalidServer(OpenAPIServerError):
2017-09-25 11:22:55 +00:00
pass
2017-09-25 14:15:00 +00:00
2017-11-03 11:18:48 +00:00
class InvalidOperation(OpenAPIOperationError):
2017-09-25 14:15:00 +00:00
pass
2017-11-03 11:18:48 +00:00
class EmptyValue(OpenAPIParameterError):
pass
class MissingParameter(OpenAPIParameterError):
pass
class InvalidParameterValue(OpenAPIParameterError):
pass
class MissingBody(OpenAPIBodyError):
pass
class InvalidMediaTypeValue(OpenAPIBodyError):
2017-10-17 13:23:26 +00:00
pass
2017-11-03 11:18:48 +00:00
class UndefinedSchemaProperty(OpenAPIBodyError):
pass
2017-11-03 11:18:48 +00:00
class MissingProperty(OpenAPIBodyError):
pass
class InvalidContentType(OpenAPIBodyError):
pass
class InvalidValue(OpenAPIMappingError):
2017-09-25 14:15:00 +00:00
pass