Elffuss BraidHub

kikocis/llama-stack public

main · 677 BRawPermalink
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"""
8Type-safe data interchange for Python data classes.
9
10:see: https://github.com/hunyadi/strong_typing
11"""
12
13
14class JsonKeyError(Exception):
15 "Raised when deserialization for a class or union type has failed because a matching member was not found."
16
17
18class JsonValueError(Exception):
19 "Raised when (de)serialization of data has failed due to invalid value."
20
21
22class JsonTypeError(Exception):
23 "Raised when deserialization of data has failed due to a type mismatch."