Class InvalidInputDimensionException
- Namespace
- AiDotNet.Exceptions
- Assembly
- AiDotNet.dll
Exception thrown when input data dimensions are invalid for a specific algorithm or operation.
public class InvalidInputDimensionException : AiDotNetException, ISerializable
- Inheritance
-
InvalidInputDimensionException
- Implements
- Inherited Members
Constructors
InvalidInputDimensionException()
Creates a new instance of the InvalidInputDimensionException class.
public InvalidInputDimensionException()
InvalidInputDimensionException(string)
Creates a new instance of the InvalidInputDimensionException class with a specified error message.
public InvalidInputDimensionException(string message)
Parameters
messagestringThe message that describes the error.
InvalidInputDimensionException(string, Exception)
Creates a new instance of the InvalidInputDimensionException class with a specified error message and a reference to the inner exception that is the cause of this exception.
public InvalidInputDimensionException(string message, Exception innerException)
Parameters
messagestringThe message that describes the error.
innerExceptionExceptionThe exception that is the cause of the current exception.
InvalidInputDimensionException(string, string, string)
Creates a new instance of the InvalidInputDimensionException class with a specified error message and context information about where the exception occurred.
public InvalidInputDimensionException(string message, string component, string operation)
Parameters
messagestringThe message that describes the error.
componentstringThe component where the dimension mismatch occurred.
operationstringThe operation being performed when the mismatch was detected.
InvalidInputDimensionException(string, string, string, Exception)
Creates a new instance of the InvalidInputDimensionException class with a specified error message, context information, and a reference to the inner exception.
public InvalidInputDimensionException(string message, string component, string operation, Exception innerException)
Parameters
messagestringThe message that describes the error.
componentstringThe component where the dimension mismatch occurred.
operationstringThe operation being performed when the mismatch was detected.
innerExceptionExceptionThe exception that is the cause of the current exception.
Properties
Component
The component where the dimension mismatch occurred.
public string Component { get; }
Property Value
Operation
The operation being performed when the mismatch was detected.
public string Operation { get; }