KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > JSci > maths > vectors > VectorDimensionException


1 package JSci.maths.vectors;
2
3 import JSci.maths.DimensionException;
4
5 /**
6 * This exception occurs when there is a problem involving a vector's dimension.
7 * For example, accessing a component outside a vector's dimension or performing
8 * an operation with vectors that have different dimensions.
9 * @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         * Constructs a VectorDimensionException with the specified detail message.
19         */

20         public VectorDimensionException(String JavaDoc s) {
21                 super(s);
22         }
23 }
24
25
Popular Tags