Skip to main content

MaybeNoneException

Namespace: Bogoware.Monads

Thrown when attempting to instantiate a Maybe<TValue> from an empty value.

public class MaybeNoneException : System.ArgumentNullException, System.Runtime.Serialization.ISerializable

Inheritance ObjectExceptionSystemExceptionArgumentExceptionArgumentNullExceptionMaybeNoneException
Implements ISerializable
Attributes NullableContextAttribute, NullableAttribute

Properties

Message

public string Message { get; }

Property Value

String

ParamName

public string ParamName { get; }

Property Value

String

TargetSite

public MethodBase TargetSite { get; }

Property Value

MethodBase

Data

public IDictionary Data { get; }

Property Value

IDictionary

InnerException

public Exception InnerException { get; }

Property Value

Exception

public string HelpLink { get; set; }

Property Value

String

Source

public string Source { get; set; }

Property Value

String

HResult

public int HResult { get; set; }

Property Value

Int32

StackTrace

public string StackTrace { get; }

Property Value

String

Constructors

MaybeNoneException()

public MaybeNoneException()

MaybeNoneException(Exception)

public MaybeNoneException(Exception inner)

Parameters

inner Exception

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;