Exception classes of Python Pickle Module

The pickle module provides the following classes: pickle.PickleError, pickle.PicklingError and pickle.UnpicklingError. pickle.PickleError is derived from the built-in Exception class.

Pickle Updated 18 Dec 2018 1 min read

Exceptions provided by the Python Pickle Module

Exception NameDescription
pickle.PickleErrorThe base class for the exceptions defined under the pickle module. PickleError is derived from the class Exception
pickle.PicklingErrorThis exception pickle.PicklingError is used when the process of pickling one or more python objects is not able to proceed.
pickle.UnpicklingErrorThis is exception pickle.UnpicklingError is raised when the process of converting a pickled byte stream into python object hierarchie(s) fails.

Exception Hierarchy

Exception classes of Pickle Module - Class hierarchy