Skip to content

Latest commit

 

History

History
51 lines (33 loc) · 2.47 KB

File metadata and controls

51 lines (33 loc) · 2.47 KB

Result<T>.Failure Method

Overloads
Failure(string) Creates a failed result with the specified error message.
Failure(Exception) Creates a failed result from an exception.

Result<T>.Failure(string) Method

Creates a failed result with the specified error message.

public static Atypical.VirtualFileSystem.Core.Result<T> Failure(string error);

Parameters

error System.String

The error message.

Returns

Atypical.VirtualFileSystem.Core.Result<T>
A failed result.

Result<T>.Failure(Exception) Method

Creates a failed result from an exception.

public static Atypical.VirtualFileSystem.Core.Result<T> Failure(System.Exception exception);

Parameters

exception System.Exception

The exception.

Returns

Atypical.VirtualFileSystem.Core.Result<T>
A failed result with the exception message.