VirtualFileSystem

Atypical.VirtualFileSystem.Core

Atypical.VirtualFileSystem.Core.Result<T>

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.