source: josm/trunk/src/org/openstreetmap/josm/io/audio/AudioException.java

Last change on this file was 12328, checked in by Don-vip, 7 years ago

fix #2089 - Add support for MP3, AIFF and AAC audio codecs (.mp3, .aac, .aif, .aiff files) if Java FX is on the classpath (i.e. Windows, macOS, nearly all major Linux distributions). The classes are not public on purpose, as the whole system will have to be simplified when all Linux distributions propose Java FX and so we can get rid of old Java Sound implementation.

File size: 1.1 KB
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.io.audio;
3
4/**
5 * Generic audio exception. Mainly used to wrap backend exceptions varying between implementations.
6 * @since 12328
7 */
8public class AudioException extends Exception {
9
10 /**
11 * Constructs a new {@code AudioException}.
12 * @param message the detail message (which is saved for later retrieval by the {@link #getMessage()} method).
13 * @param cause the cause (which is saved for later retrieval by the {@link #getCause()} method).
14 */
15 public AudioException(String message, Throwable cause) {
16 super(message, cause);
17 }
18
19 /**
20 * Constructs a new {@code AudioException}.
21 * @param message the detail message (which is saved for later retrieval by the {@link #getMessage()} method).
22 */
23 public AudioException(String message) {
24 super(message);
25 }
26
27 /**
28 * Constructs a new {@code AudioException}.
29 * @param cause the cause (which is saved for later retrieval by the {@link #getCause()} method).
30 */
31 public AudioException(Throwable cause) {
32 super(cause);
33 }
34}
Note: See TracBrowser for help on using the repository browser.