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):
|
2017-10-18 13:42:10 +00:00
|
|
|
pass
|
|
|
|
|
|
|
|
|
2017-11-03 11:18:48 +00:00
|
|
|
class MissingProperty(OpenAPIBodyError):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class InvalidContentType(OpenAPIBodyError):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
2017-11-06 11:00:13 +00:00
|
|
|
class InvalidResponse(OpenAPIMappingError):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
2017-11-03 11:18:48 +00:00
|
|
|
class InvalidValue(OpenAPIMappingError):
|
2017-09-25 14:15:00 +00:00
|
|
|
pass
|