mirror of
https://github.com/correl/openapi-core.git
synced 2024-11-28 19:19:52 +00:00
18 lines
405 B
Python
18 lines
405 B
Python
import attr
|
|
|
|
from openapi_core.exceptions import OpenAPIError
|
|
|
|
|
|
class ResponseFinderError(OpenAPIError):
|
|
"""Response finder error"""
|
|
|
|
|
|
@attr.s(hash=True)
|
|
class ResponseNotFound(ResponseFinderError):
|
|
"""Find response error"""
|
|
http_status = attr.ib()
|
|
responses = attr.ib()
|
|
|
|
def __str__(self):
|
|
return "Unknown response http status: {0}".format(
|
|
str(self.http_status))
|