01: package JSci.maths.vectors;
02:
03: import JSci.maths.DimensionException;
04:
05: /**
06: * This exception occurs when there is a problem involving a vector's dimension.
07: * For example, accessing a component outside a vector's dimension or performing
08: * an operation with vectors that have different dimensions.
09: * @version 1.1
10: * @author Mark Hale
11: */
12: public final class VectorDimensionException extends DimensionException {
13: /**
14: * Constructs a VectorDimensionException with no detail message.
15: */
16: public VectorDimensionException() {
17: }
18:
19: /**
20: * Constructs a VectorDimensionException with the specified detail message.
21: */
22: public VectorDimensionException(String s) {
23: super(s);
24: }
25: }
|