err


Description:

public static Result<G> err<G> (owned Error exception)

Creates a result holds the given error.

Parameters:

exception

an error

Returns:

the result