mirror of
https://github.com/correl/openapi-core.git
synced 2024-11-28 19:19:52 +00:00
17 lines
403 B
Python
17 lines
403 B
Python
import attr
|
|
|
|
from openapi_core.schema.exceptions import OpenAPIMappingError
|
|
|
|
|
|
class OpenAPIOperationError(OpenAPIMappingError):
|
|
pass
|
|
|
|
|
|
@attr.s(hash=True)
|
|
class InvalidOperation(OpenAPIOperationError):
|
|
path_pattern = attr.ib()
|
|
http_method = attr.ib()
|
|
|
|
def __str__(self):
|
|
return "Unknown operation path {0} with method {1}".format(
|
|
self.path_pattern, self.http_method)
|