openapi-core/openapi_core/schema/paths/exceptions.py

16 lines
303 B
Python
Raw Normal View History

2019-06-18 15:13:44 +00:00
import attr
from openapi_core.schema.exceptions import OpenAPIMappingError
class OpenAPIPathError(OpenAPIMappingError):
pass
@attr.s(hash=True)
class InvalidPath(OpenAPIPathError):
path_pattern = attr.ib()
def __str__(self):
return "Unknown path {0}".format(self.path_pattern)