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 javax.measure.converter;
010
011/**
012 * Signals that a problem of some sort has occurred either when creating a
013 * converter between two units or during the conversion itself.
014 *
015 * @author  <a href="mailto:jean-marie@dautelle.com">Jean-Marie Dautelle</a>
016 * @version 3.1, April 2, 2006
017 */
018public class ConversionException extends RuntimeException {
019
020    /**
021     * Constructs a <code>ConversionException</code> with no detail message.
022     */
023    public ConversionException() {
024        super();
025    }
026
027    /**
028     * Constructs a <code>ConversionException</code> with the specified detail
029     * message.
030     *
031     * @param  message the detail message.
032     */
033    public ConversionException(String message) {
034        super(message);
035    }
036
037    private static final long serialVersionUID = 1L;
038}