| 1 | # Copyright (c) Meta Platforms, Inc. and affiliates. |
| 2 | # All rights reserved. |
| 3 | # |
| 4 | # This source code is licensed under the terms described in the LICENSE file in |
| 5 | # the root directory of this source tree. |
| 6 | |
| 7 | """ |
| 8 | Type-safe data interchange for Python data classes. |
| 9 | |
| 10 | :see: https://github.com/hunyadi/strong_typing |
| 11 | """ |
| 12 | |
| 13 | |
| 14 | class JsonKeyError(Exception): |
| 15 | "Raised when deserialization for a class or union type has failed because a matching member was not found." |
| 16 | |
| 17 | |
| 18 | class JsonValueError(Exception): |
| 19 | "Raised when (de)serialization of data has failed due to invalid value." |
| 20 | |
| 21 | |
| 22 | class JsonTypeError(Exception): |
| 23 | "Raised when deserialization of data has failed due to a type mismatch." |