turbo_broccoli.exceptions

Various utilities and internal methods

 1"""Various utilities and internal methods"""
 2
 3
 4class DeserializationError(Exception):
 5    """Raised whenever something went wrong during deserialization"""
 6
 7
 8class SerializationError(Exception):
 9    """Raised whenever something went wrong during serialization"""
10
11
12class TypeNotSupported(Exception):
13    """
14    `to_json` will raise that if they are fed types they cannot manage. This is
15    fine, the dispatch in `turbo_broccoli.turbo_broccoli._to_jsonable` catches
16    these and moves on to the next registered `to_json` method.
17    """
18
19
20class TypeIsNodecode(Exception):
21    """Raised during deserialization if the type shouldn't be decoded"""
class DeserializationError(builtins.Exception):
5class DeserializationError(Exception):
6    """Raised whenever something went wrong during deserialization"""

Raised whenever something went wrong during deserialization

Inherited Members
builtins.Exception
Exception
builtins.BaseException
with_traceback
add_note
args
class SerializationError(builtins.Exception):
 9class SerializationError(Exception):
10    """Raised whenever something went wrong during serialization"""

Raised whenever something went wrong during serialization

Inherited Members
builtins.Exception
Exception
builtins.BaseException
with_traceback
add_note
args
class TypeNotSupported(builtins.Exception):
13class TypeNotSupported(Exception):
14    """
15    `to_json` will raise that if they are fed types they cannot manage. This is
16    fine, the dispatch in `turbo_broccoli.turbo_broccoli._to_jsonable` catches
17    these and moves on to the next registered `to_json` method.
18    """

to_json will raise that if they are fed types they cannot manage. This is fine, the dispatch in turbo_broccoli.turbo_broccoli._to_jsonable catches these and moves on to the next registered to_json method.

Inherited Members
builtins.Exception
Exception
builtins.BaseException
with_traceback
add_note
args
class TypeIsNodecode(builtins.Exception):
21class TypeIsNodecode(Exception):
22    """Raised during deserialization if the type shouldn't be decoded"""

Raised during deserialization if the type shouldn't be decoded

Inherited Members
builtins.Exception
Exception
builtins.BaseException
with_traceback
add_note
args