001// License: GPL. For details, see LICENSE file.
002package org.openstreetmap.josm.data.projection;
003
004/**
005 * Exception thrown when a projection cannot be constructed due to invalid input
006 * parameters.
007 *
008 * Used mainly in {@link CustomProjection}, where a parameter string is parsed
009 * and converted to a projection.
010 */
011public class ProjectionConfigurationException extends Exception {
012
013    /**
014     * Constructs a new {@code ProjectionConfigurationException}.
015     * @param  message the detail message (which is saved for later retrieval
016     *         by the {@link #getMessage()} method).
017     * @param  cause the cause (which is saved for later retrieval by the
018     *         {@link #getCause()} method).  (A <code>null</code> value is
019     *         permitted, and indicates that the cause is nonexistent or unknown.)
020     */
021    public ProjectionConfigurationException(String message, Throwable cause) {
022        super(message, cause);
023    }
024
025    /**
026     * Constructs a new {@code ProjectionConfigurationException}.
027     * @param   message   the detail message. The detail message is saved for
028     *          later retrieval by the {@link #getMessage()} method.
029     */
030    public ProjectionConfigurationException(String message) {
031        super(message);
032    }
033
034    /**
035     * Constructs a new {@code ProjectionConfigurationException}.
036     * @param  cause the cause (which is saved for later retrieval by the
037     *         {@link #getCause()} method).  (A <code>null</code> value is
038     *         permitted, and indicates that the cause is nonexistent or unknown.)
039     */
040    public ProjectionConfigurationException(Throwable cause) {
041        super(cause);
042    }
043}