fromException
Creates a failed result containing the specified exception.
This factory method constructs a Result instance representing a failed operation. The created result will have isSuccess return false, getData return null, and getException return the provided exception.
Note: This is an internal SDK method. Application developers typically don't need to create Result instances directly as they are provided by SDK callback methods.
Return
a Result instance representing a failed operation with the given exception
Parameters
exception
the exception describing the failure (must not be null)
<T>
the type of success data (not used in failed results)
<E>
the type of exception