Error Method
Definition
- Namespace
- Tyne
- Assembly
- Tyne.Core.dll
Methods
| Edit this page View SourceError<T, TE>(in TE)
Creates an Error Result<T, TE>.
Declaration
[Pure]
public static Result<T, TE> Error<T, TE>(in TE error)
Parameters
error- TE
The TE value to encapsulate.
Returns
Result<T, TE>An Error( Result<T, TE> which wraps TE)error.
Type Parameters
TThe type of value the result encapsulates.
TEThe type of error the result encapsulates.
Exceptions
- ArgumentNullException
When
erroris null.