001// License: GPL. For details, see LICENSE file.
002package org.openstreetmap.josm.io;
003
004/**
005 * Generic exception raised when illegal data is read.
006 * @since 2070
007 */
008public class IllegalDataException extends Exception {
009
010    /**
011     * Constructs a new {@code IllegalDataException}.
012     * @param message the detail message (which is saved for later retrieval
013     *         by the {@link #getMessage()} method).
014     * @param cause the cause (which is saved for later retrieval by the
015     *         {@link #getCause()} method).
016     */
017    public IllegalDataException(String message, Throwable cause) {
018        super(message, cause);
019    }
020
021    /**
022     * Constructs a new {@code IllegalDataException}.
023     * @param message the detail message (which is saved for later retrieval
024     *         by the {@link #getMessage()} method).
025     */
026    public IllegalDataException(String message) {
027        super(message);
028    }
029
030    /**
031     * Constructs a new {@code IllegalDataException}.
032     * @param cause the cause (which is saved for later retrieval by the
033     *         {@link #getCause()} method).
034     */
035    public IllegalDataException(Throwable cause) {
036        super(cause);
037    }
038}