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
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
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.