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.physics.amount; 010 011/** 012 * Signals that an illegal measure operation has been performed. 013 * 014 * @author <a href="mailto:jean-marie@dautelle.com">Jean-Marie Dautelle</a> 015 * @version 3.0, March 2, 2006 016 */ 017public class AmountException extends RuntimeException { 018 019 /** 020 * Constructs a measure exception with no detail message. 021 */ 022 public AmountException() { 023 super(); 024 } 025 026 /** 027 * Constructs a measure exception with the specified message. 028 * 029 * @param message the error message. 030 */ 031 public AmountException(String message) { 032 super(message); 033 } 034 035 private static final long serialVersionUID = 1L; 036}