ResultFailedException
Namespace: Bogoware.Monads
Exception thrown when attempting to get the value of a Result<TValue>
where Result<TValue>.IsFailure is true.
public class ResultFailedException : ResultInvalidOperationException, System.Runtime.Serialization.ISerializable
Inheritance Object → Exception → SystemException → InvalidOperationException → ResultInvalidOperationException → ResultFailedException
Implements ISerializable
Attributes NullableContextAttribute, NullableAttribute
Properties
Error
The error of the Result<TValue> that failed.
public Error Error { get; }
Property Value
TargetSite
public MethodBase TargetSite { get; }
Property Value
Message
public string Message { get; }
Property Value
Data
public IDictionary Data { get; }
Property Value
InnerException
public Exception InnerException { get; }
Property Value
HelpLink
public string HelpLink { get; set; }
Property Value
Source
public string Source { get; set; }
Property Value
HResult
public int HResult { get; set; }
Property Value
StackTrace
public string StackTrace { get; }
Property Value
Constructors
ResultFailedException(Error)
public ResultFailedException(Error error)
Parameters
error Error
Events
SerializeObjectState
Caution
BinaryFormatter serialization is obsolete and should not be used. See https://aka.ms/binaryformatter for more information.
protected event EventHandler<SafeSerializationEventArgs> SerializeObjectState;