Class DimensionMismatchException
Inheritance
Implements
Inherited Members
Namespace: Mars.Common.Exceptions
Assembly: Mars.Common.dll
Syntax
[Serializable]
public class DimensionMismatchException : ArgumentException, ISerializable
  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
| Improve this Doc View SourceDimensionMismatchException(SerializationInfo, StreamingContext)
Declaration
protected DimensionMismatchException(SerializationInfo info, StreamingContext context)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Runtime.Serialization.SerializationInfo | info | The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown. | 
| System.Runtime.Serialization.StreamingContext | context | The System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination. | 
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.
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, Exception)
Declaration
public DimensionMismatchException(string message, Exception innerException)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | message | Message providing some additional information. | 
| System.Exception | innerException | The exception that is the cause of the current exception. | 
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.
DimensionMismatchException(String, String)
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. | 
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.
DimensionMismatchException(String)
Declaration
public DimensionMismatchException(string paramName)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | paramName | The name of the parameter that caused the current exception. | 
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.