mirror of
https://github.com/correl/openapi-core.git
synced 2024-11-25 19:19:55 +00:00
15 lines
355 B
Python
15 lines
355 B
Python
|
import attr
|
||
|
|
||
|
from openapi_core.exceptions import OpenAPIError
|
||
|
|
||
|
|
||
|
@attr.s(hash=True)
|
||
|
class DeserializeError(OpenAPIError):
|
||
|
"""Deserialize operation error"""
|
||
|
value = attr.ib()
|
||
|
style = attr.ib()
|
||
|
|
||
|
def __str__(self):
|
||
|
return "Failed to deserialize value {value} with style {style}".format(
|
||
|
value=self.value, style=self.style)
|