Class NoSuchElementException
The exception that is thrown when an element is not found.
public class NoSuchElementException : NotFoundException, ISerializable
- Inheritance
-
NoSuchElementException
- Implements
- Derived
- Inherited Members
Constructors
NoSuchElementException()
Initializes a new instance of the NoSuchElementException class.
public NoSuchElementException()
NoSuchElementException(SerializationInfo, StreamingContext)
Initializes a new instance of the NoSuchElementException class with serialized data.
protected NoSuchElementException(SerializationInfo info, StreamingContext context)
Parameters
infoSerializationInfoThe SerializationInfo that holds the serialized object data about the exception being thrown.
contextStreamingContextThe StreamingContext that contains contextual information about the source or destination.
NoSuchElementException(string)
Initializes a new instance of the NoSuchElementException class with a specified error message.
public NoSuchElementException(string message)
Parameters
messagestringThe message that describes the error.
NoSuchElementException(string, Exception)
Initializes a new instance of the NoSuchElementException class with a specified error message and a reference to the inner exception that is the cause of this exception.
public NoSuchElementException(string message, Exception innerException)