1 | /* |
2 | * JScience - Java(TM) Tools and Libraries for the Advancement of Sciences. |
3 | * Copyright (C) 2006 - JScience (http://jscience.org/) |
4 | * All rights reserved. |
5 | * |
6 | * Permission to use, copy, modify, and distribute this software is |
7 | * freely granted, provided that this notice is preserved. |
8 | */ |
9 | package javax.measure.converter; |
10 | |
11 | /** |
12 | * Signals that a problem of some sort has occurred either when creating a |
13 | * converter between two units or during the conversion itself. |
14 | * |
15 | * @author <a href="mailto:jean-marie@dautelle.com">Jean-Marie Dautelle</a> |
16 | * @version 3.1, April 2, 2006 |
17 | */ |
18 | public class ConversionException extends RuntimeException { |
19 | |
20 | /** |
21 | * Constructs a <code>ConversionException</code> with no detail message. |
22 | */ |
23 | public ConversionException() { |
24 | super(); |
25 | } |
26 | |
27 | /** |
28 | * Constructs a <code>ConversionException</code> with the specified detail |
29 | * message. |
30 | * |
31 | * @param message the detail message. |
32 | */ |
33 | public ConversionException(String message) { |
34 | super(message); |
35 | } |
36 | |
37 | private static final long serialVersionUID = 1L; |
38 | } |