Skip to main content

unwrap_ser_error

No overview available.

def unwrap_ser_error(
err: Exception
) - > Exception

Extracts the underlying exception from a serialization error wrapper to provide access to the original failure cause.

Parameters

NameTypeDescription
errExceptionThe error object to unwrap, typically a serialization-related exception wrapper.

Returns

TypeDescription
ExceptionThe original exception that caused the serialization failure, or the input error if no wrapper is found.