gov.sandia.cognition.math.matrix
Class DimensionalityMismatchException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by gov.sandia.cognition.math.matrix.DimensionalityMismatchException
All Implemented Interfaces:
Serializable

@CodeReview(reviewer="Jonathan McClain",
            date="2006-05-16",
            changesNeeded=false,
            comments="Looks fine.")
public class DimensionalityMismatchException
extends RuntimeException

Gets thrown when the dimensions don't agree for a matrix/vector operation

Since:
1.0
Author:
Kevin R. Dixon
See Also:
Serialized Form

Constructor Summary
DimensionalityMismatchException()
          Creates a new instance of DimensionalityMismatchException without detail message.
DimensionalityMismatchException(int first, int second)
          Constructs and instance of DimensionalityMismatchException with the two mismatching dimensions.
DimensionalityMismatchException(String msg)
          Constructs an instance of DimensionalityMismatchException with the specified detail message.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DimensionalityMismatchException

public DimensionalityMismatchException()
Creates a new instance of DimensionalityMismatchException without detail message.


DimensionalityMismatchException

public DimensionalityMismatchException(String msg)
Constructs an instance of DimensionalityMismatchException with the specified detail message.

Parameters:
msg - the detail message.

DimensionalityMismatchException

public DimensionalityMismatchException(int first,
                                       int second)
Constructs and instance of DimensionalityMismatchException with the two mismatching dimensions.

Parameters:
first - The first dimensionality
second - The second dimensionality