org.crwth.systems
Class WrongDimensionException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--org.crwth.systems.WrongDimensionException
All Implemented Interfaces:
Serializable

public class WrongDimensionException
extends Exception

Generic class for objects with mismatched dimensions. WrongDimensionException and its subclasses are thrown when two objects of mismatched dimensions are used together. e.g. A Vector3d is applied to a Vector2d.

See Also:
Serialized Form

Constructor Summary
WrongDimensionException(int expected, int received)
           
WrongDimensionException(String msg)
           
 
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

WrongDimensionException

public WrongDimensionException(String msg)
Parameters:
msg - informative message regarding the mismatched dimensions.

WrongDimensionException

public WrongDimensionException(int expected,
                               int received)
Parameters:
expected - expected dimension.
received - received dimension.