InsufficientDataException Constructor

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2

Overload List

InsufficientDataException

Constructs a new InsufficientDataException object.
C#
public InsufficientDataException()

InsufficientDataException(String)

Constructs a new InsufficientDataException object.
C#
public InsufficientDataException(
	string message
)

Parameters

message  String
The error message that explains the reason for the exception.

InsufficientDataException(Int32, Int32)

Constructs a new InsufficientDataException object.
C#
public InsufficientDataException(
	int minimumDataLength,
	int actualDataLength
)

Parameters

minimumDataLength  Int32
The minimum number of data points required to perform the requested calculation.
actualDataLength  Int32
The actual number of data points that was supplied.

InsufficientDataException(SerializationInfo, StreamingContext)

Note: This API is now obsolete.
Constructs a new InsufficientDataException object.
C#
[ObsoleteAttribute(DiagnosticId = "SYSLIB0051")]
protected InsufficientDataException(
	SerializationInfo info,
	StreamingContext context
)

Parameters

info  SerializationInfo
The object that holds the serialized object data.
context  StreamingContext
The contextual information about the source or destination.

Remarks

This constructor is called during deserialization to reconstitute the exception object transmitted over a stream.

InsufficientDataException(String, Exception)

Constructs a new InsufficientDataException object.
C#
public InsufficientDataException(
	string message,
	Exception innerException
)

Parameters

message  String
The error message that explains the reason for the exception.
innerException  Exception
The exception that is the cause of the current exception. If the innerException parameter is not null, the current exception is raised in a catch block that handles the inner exception.

InsufficientDataException(String, Int32, Int32)

Constructs a new InsufficientDataException object.
C#
public InsufficientDataException(
	string message,
	int minimumDataLength,
	int actualDataLength
)

Parameters

message  String
The error message that explains the reason for the exception.
minimumDataLength  Int32
The minimum number of data points required to perform the requested calculation.
actualDataLength  Int32
The actual number of data points that was supplied.

InsufficientDataException(String, Exception, Int32, Int32)

Constructs a new InsufficientDataException object.
C#
public InsufficientDataException(
	string message,
	Exception innerException,
	int minimumDataLength,
	int actualDataLength
)

Parameters

message  String
The error message that explains the reason for the exception.
innerException  Exception
The exception that is the cause of the current exception. If the innerException parameter is not null, the current exception is raised in a catch block that handles the inner exception.
minimumDataLength  Int32
The minimum number of data points required to perform the requested calculation.
actualDataLength  Int32
The actual number of data points that was supplied.

See Also