mirror of
https://github.com/correl/openapi-core.git
synced 2024-11-25 19:19:55 +00:00
73 lines
1 KiB
Python
73 lines
1 KiB
Python
"""OpenAPI core exceptions module"""
|
|
|
|
|
|
class OpenAPIError(Exception):
|
|
pass
|
|
|
|
|
|
class OpenAPIMappingError(OpenAPIError):
|
|
pass
|
|
|
|
|
|
class OpenAPIServerError(OpenAPIMappingError):
|
|
pass
|
|
|
|
|
|
class OpenAPIOperationError(OpenAPIMappingError):
|
|
pass
|
|
|
|
|
|
class InvalidValueType(OpenAPIMappingError):
|
|
pass
|
|
|
|
|
|
class OpenAPIParameterError(OpenAPIMappingError):
|
|
pass
|
|
|
|
|
|
class OpenAPIBodyError(OpenAPIMappingError):
|
|
pass
|
|
|
|
|
|
class InvalidServer(OpenAPIServerError):
|
|
pass
|
|
|
|
|
|
class InvalidOperation(OpenAPIOperationError):
|
|
pass
|
|
|
|
|
|
class EmptyValue(OpenAPIParameterError):
|
|
pass
|
|
|
|
|
|
class MissingParameter(OpenAPIParameterError):
|
|
pass
|
|
|
|
|
|
class InvalidParameterValue(OpenAPIParameterError):
|
|
pass
|
|
|
|
|
|
class MissingBody(OpenAPIBodyError):
|
|
pass
|
|
|
|
|
|
class InvalidMediaTypeValue(OpenAPIBodyError):
|
|
pass
|
|
|
|
|
|
class UndefinedSchemaProperty(OpenAPIBodyError):
|
|
pass
|
|
|
|
|
|
class MissingProperty(OpenAPIBodyError):
|
|
pass
|
|
|
|
|
|
class InvalidContentType(OpenAPIBodyError):
|
|
pass
|
|
|
|
|
|
class InvalidValue(OpenAPIMappingError):
|
|
pass
|