| Overloads | |
|---|---|
| Failure(string) | Creates a failed result with the specified error message. |
| Failure(Exception) | Creates a failed result from an exception. |
Creates a failed result with the specified error message.
public static Atypical.VirtualFileSystem.Core.Result<T> Failure(string error);
error System.String
The error message.
Atypical.VirtualFileSystem.Core.Result<T>
A failed result.
Creates a failed result from an exception.
public static Atypical.VirtualFileSystem.Core.Result<T> Failure(System.Exception exception);
exception System.Exception
The exception.
Atypical.VirtualFileSystem.Core.Result<T>
A failed result with the exception message.