1
0
Fork 0
mirror of https://github.com/correl/openapi-core.git synced 2025-04-12 17:00:09 -09:00
openapi-core/openapi_core/schema/servers/exceptions.py
2019-06-18 14:54:02 +01:00

16 lines
340 B
Python

import attr
from openapi_core.schema.exceptions import OpenAPIMappingError
class OpenAPIServerError(OpenAPIMappingError):
pass
@attr.s(hash=True)
class InvalidServer(OpenAPIServerError):
full_url_pattern = attr.ib()
def __str__(self):
return "Invalid request server {0}".format(
self.full_url_pattern)