libuserd_exception#

LibUserd.libuserd_exception(e: RpcError) Exception#

Given an exception raised as the result of a gRPC call, return either the input exception or a LibUserdError exception object to differentiate between gRPC issues and libuserd issues.

Parameters:
e

The exception raised by a gRPC call.

Returns:
Exception

Either the original exception or a LibUserdError exception instance, depending on the original exception message details.