Table of Contents

Class VectorLengthMismatchException

Namespace
AiDotNet.Exceptions
Assembly
AiDotNet.dll

Exception thrown when a vector's length doesn't match the expected value.

public class VectorLengthMismatchException : AiDotNetException, ISerializable
Inheritance
VectorLengthMismatchException
Implements
Inherited Members

Constructors

VectorLengthMismatchException(int, int, string, string)

Initializes a new instance of the VectorLengthMismatchException class.

public VectorLengthMismatchException(int expectedLength, int actualLength, string component, string operation)

Parameters

expectedLength int

The expected length of the vector.

actualLength int

The actual length of the vector.

component string

The component where the length mismatch occurred.

operation string

The operation being performed when the mismatch was detected.

Properties

ActualLength

The actual length of the vector.

public int ActualLength { get; }

Property Value

int

Component

The component where the length mismatch occurred.

public string Component { get; }

Property Value

string

ExpectedLength

The expected length of the vector.

public int ExpectedLength { get; }

Property Value

int

Operation

The operation being performed when the mismatch was detected.

public string Operation { get; }

Property Value

string