001// License: GPL. For details, see LICENSE file.
002package org.openstreetmap.josm.io.audio;
003
004/**
005 * Generic audio exception. Mainly used to wrap backend exceptions varying between implementations.
006 * @since 12328
007 */
008public class AudioException extends Exception {
009
010    /**
011     * Constructs a new {@code AudioException}.
012     * @param message the detail message (which is saved for later retrieval by the {@link #getMessage()} method).
013     * @param cause the cause (which is saved for later retrieval by the {@link #getCause()} method).
014     */
015    public AudioException(String message, Throwable cause) {
016        super(message, cause);
017    }
018
019    /**
020     * Constructs a new {@code AudioException}.
021     * @param message the detail message (which is saved for later retrieval by the {@link #getMessage()} method).
022     */
023    public AudioException(String message) {
024        super(message);
025    }
026
027    /**
028     * Constructs a new {@code AudioException}.
029     * @param cause the cause (which is saved for later retrieval by the {@link #getCause()} method).
030     */
031    public AudioException(Throwable cause) {
032        super(cause);
033    }
034}