FromException

Constructs a suitable failed SignatureResult from the exception. UserInitiatedCancellationReason and subclasses map to Failure, anything else maps to Error.