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
expectedLengthintThe expected length of the vector.
actualLengthintThe actual length of the vector.
componentstringThe component where the length mismatch occurred.
operationstringThe operation being performed when the mismatch was detected.
Properties
ActualLength
The actual length of the vector.
public int ActualLength { get; }
Property Value
Component
The component where the length mismatch occurred.
public string Component { get; }
Property Value
ExpectedLength
The expected length of the vector.
public int ExpectedLength { get; }
Property Value
Operation
The operation being performed when the mismatch was detected.
public string Operation { get; }