001/* 002 * JScience - Java(TM) Tools and Libraries for the Advancement of Sciences. 003 * Copyright (C) 2006 - JScience (http://jscience.org/) 004 * All rights reserved. 005 * 006 * Permission to use, copy, modify, and distribute this software is 007 * freely granted, provided that this notice is preserved. 008 */ 009package org.jscience.mathematics.vector; 010 011/** 012 * Signals that an operation is performed upon vectors or matrices whose 013 * dimensions disagree. 014 * 015 * @author <a href="mailto:jean-marie@dautelle.com">Jean-Marie Dautelle</a> 016 * @version 3.0, February 13, 2006 017 */ 018public class DimensionException extends RuntimeException { 019 020 /** 021 * Constructs a dimension exception with no detail message. 022 */ 023 public DimensionException() { 024 super(); 025 } 026 027 /** 028 * Constructs a dimension exception with the specified message. 029 * 030 * @param message the error message. 031 */ 032 public DimensionException(String message) { 033 super(message); 034 } 035 036 private static final long serialVersionUID = 1L; 037}