of
public static ActualException<T> of<T extends Throwable>(T exception, boolean successful, Function<String, String> formatter)(source)
Returns an instance representing behavior where the given exception was thrown or, if no exception is given, an behavior where no exception was thrown.
Return
the exceptional behavior
Parameters
exception
the exception
formatter
the formatter
<T>
the type of the exception
Returns an instance representing behavior where the given exception was thrown or an behavior where no exception was thrown if no exception is given.
Return
the exceptional behavior
Parameters
exception
the exception
<T>
the type of the exception