Class UnsuccessfulValue<TResult>
- Namespace
- Cuemon
- Assembly
- Cuemon.Core.dll
Provides a way to indicate a faulted operation. This class cannot be inherited.
public sealed class UnsuccessfulValue<TResult> : ConditionalValue<TResult>
Type Parameters
TResult
The type of the return value of the operation.
- Inheritance
-
ConditionalValue<TResult>UnsuccessfulValue<TResult>
- Inherited Members
Constructors
UnsuccessfulValue(TResult)
Initializes a new instance of the UnsuccessfulValue<TResult> class.
public UnsuccessfulValue(TResult result = null)
Parameters
result
TResultThe optional value of result.
UnsuccessfulValue(Exception, TResult)
Initializes a new instance of the UnsuccessfulValue<TResult> class.
public UnsuccessfulValue(Exception failure, TResult result = null)
Parameters
failure
ExceptionThe Exception that caused the faulted operation.
result
TResultThe optional value of result.
See Also
ConditionalValue<TResult>