EmptySequenceException Class

Summary

An Exception that indicates that the sequence is empty.
Namespace
FunctionalSharp.DiscriminatedUnions.Exceptions
Interfaces
  • ISerializable
  • _Exception
Base Types
  • object
  • Exception
graph TD Base0["Exception"]-->Type Base1["object"]-->Base0 Interface0["ISerializable"]-.->Type Interface1["_Exception"]-.->Type Type["EmptySequenceException"] class Type type-node

Syntax

[Serializable]
public class EmptySequenceException : Exception, ISerializable, _Exception

Attributes

Type Description
SerializableAttribute

Constructors

Name Summary
EmptySequenceException() Creates a new Emptyexception instance.
EmptySequenceException(string) Creates a new Emptyexception instance with the givven message.

Extension Methods

Name Value Summary
Match<EmptySequenceException>() PatternMatchSingleContext<T>
Starts a pattern match for a single value. Subsequent calls to With() need to be used to specify conditions
ToOption<EmptySequenceException>() IOption<T>
Turns the type T into an option type.