Table of Contents

Class UnwrapFailedException

Namespace
Trellis.Testing
Assembly
Trellis.Testing.dll

Exception thrown when Unwrap<T>(Result<T>) or Unwrap<T>(Maybe<T>) is called on a failure/none value. Provides a descriptive message including the error details for test diagnostics.

public sealed class UnwrapFailedException : Exception, ISerializable
Inheritance
UnwrapFailedException
Implements
Inherited Members
Extension Methods

Constructors

UnwrapFailedException()

Initializes a new instance of the UnwrapFailedException class.

public UnwrapFailedException()

UnwrapFailedException(string)

Initializes a new instance of the UnwrapFailedException class.

public UnwrapFailedException(string message)

Parameters

message string

The descriptive error message.

UnwrapFailedException(string, Exception)

Initializes a new instance of the UnwrapFailedException class.

public UnwrapFailedException(string message, Exception innerException)

Parameters

message string

The descriptive error message.

innerException Exception

The inner exception.