exception property
exception
member takes in a value of type Exception
. If you have your
own exception of string format to be passed it this way to return it:
return CallOutcome<String>(exception: Exception(e));
Implementation
Exception? exception;