001/**
002 * Unit-API - Units of Measurement API for Java
003 * Copyright (c) 2014 Jean-Marie Dautelle, Werner Keil, V2COM
004 * All rights reserved.
005 *
006 * See LICENSE.txt for details.
007 */
008package javax.measure;
009
010
011
012
013/**
014 * Signals that a problem of some sort has occurred due to the impossibility of
015 * constructing a converter between two units. For example, the multiplication of
016 * offset units are usually units not convertible to their {@linkplain Unit#getSystemUnit()
017 * system unit}.
018 *
019 * @author <a href="mailto:[email protected]">Jean-Marie Dautelle</a>
020 * @author <a href="mailto:[email protected]">Werner Keil</a>
021 * @version 0.4, 2014-06-10
022 *
023 */
024public class UnconvertibleException extends MeasurementException {
025    /**
026     * For cross-version compatibility.
027     */
028    private static final long serialVersionUID = -4623551240019830166L;
029
030    /**
031     * Constructs a {@code UnconvertibleException} with the given message.
032     *
033     * @param message the detail message, or {@code null} if none.
034     */
035    public UnconvertibleException(final String message) {
036        super(message);
037    }
038
039    /**
040     * Constructs a {@code UnconvertibleException} with the given cause.
041     *
042     * @param cause the cause of this exception, or {@code null} if none.
043     */
044    public UnconvertibleException(final Throwable cause) {
045        super(cause);
046    }
047
048    /**
049     * Constructs a {@code UnconvertibleException} with the given message and cause.
050     *
051     * @param message the detail message, or {@code null} if none.
052     * @param cause the cause of this exception, or {@code null} if none.
053     *
054     */
055    public UnconvertibleException(final String message, final Throwable cause) {
056        super(message, cause);
057    }
058}