Class DimensionMismatchException
Dimension Mismatch Exception.
Inheritance
ArgumentException
DimensionMismatchException
Namespace: Mars.Common.Exceptions
Assembly: Mars.Common.dll
Syntax
public class DimensionMismatchException : ArgumentException
Remarks
The dimension mismatch exception is thrown in cases where a method expects a matrix or array object having specific or compatible dimensions, such as the inner matrix dimensions in matrix multiplication.
Constructors
DimensionMismatchException(SerializationInfo, StreamingContext)
Initializes a new instance of the DimensionMismatchException class.
Declaration
protected DimensionMismatchException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown. |
StreamingContext | context | The System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
The info parameter is null.
|
System.Runtime.Serialization.SerializationException | The class name is null or System.Exception.HResult is zero (0). |
DimensionMismatchException(String)
Initializes a new instance of the DimensionMismatchException class.
Declaration
public DimensionMismatchException(string paramName)
Parameters
Type | Name | Description |
---|---|---|
System.String | paramName | The name of the parameter that caused the current exception. |
DimensionMismatchException(String, Exception)
Initializes a new instance of the DimensionMismatchException class.
Declaration
public DimensionMismatchException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | Message providing some additional information. |
Exception | innerException | The exception that is the cause of the current exception. |
DimensionMismatchException(String, String)
Initializes a new instance of the DimensionMismatchException class.
Declaration
public DimensionMismatchException(string paramName, string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | paramName | The name of the parameter that caused the current exception. |
System.String | message | Message providing some additional information. |