001// License: GPL. For details, see LICENSE file.
002package org.openstreetmap.josm.io;
003
004/**
005 * Exception thrown when a valid OAuth access token was expected, but not found.
006 */
007public class MissingOAuthAccessTokenException extends OsmTransferException {
008
009    /**
010     * Constructs a new {@code MissingOAuthAccessTokenException}.
011     */
012    public MissingOAuthAccessTokenException() {
013        super();
014    }
015
016    /**
017     * Constructs a new {@code MissingOAuthAccessTokenException} with the specified detail message and cause.
018     * @param message The detail message (which is saved for later retrieval by the {@link #getMessage} method)
019     * @param cause   The cause (which is saved for later retrieval by the {@link #getCause} method).
020     *                A null value is permitted, and indicates that the cause is nonexistent or unknown.
021     */
022    public MissingOAuthAccessTokenException(String message, Throwable cause) {
023        super(message, cause);
024    }
025
026    /**
027     * Constructs a new {@code MissingOAuthAccessTokenException} with the specified detail message.
028     * @param message The detail message (which is saved for later retrieval by the {@link #getMessage} method)
029     */
030    public MissingOAuthAccessTokenException(String message) {
031        super(message);
032    }
033
034    /**
035     * Constructs a new {@code MissingOAuthAccessTokenException} with the specified cause.
036     * @param cause   The cause (which is saved for later retrieval by the {@link #getCause} method).
037     *                A null value is permitted, and indicates that the cause is nonexistent or unknown.
038     */
039    public MissingOAuthAccessTokenException(Throwable cause) {
040        super(cause);
041    }
042}