23 * questions. |
23 * questions. |
24 */ |
24 */ |
25 |
25 |
26 package javax.sound.midi; |
26 package javax.sound.midi; |
27 |
27 |
28 |
|
29 /** |
28 /** |
30 * A <code>MidiUnavailableException</code> is thrown when a requested MIDI |
29 * A {@code MidiUnavailableException} is thrown when a requested MIDI component |
31 * component cannot be opened or created because it is unavailable. This often |
30 * cannot be opened or created because it is unavailable. This often occurs when |
32 * occurs when a device is in use by another application. More generally, it |
31 * a device is in use by another application. More generally, it can occur when |
33 * can occur when there is a finite number of a certain kind of resource that can |
32 * there is a finite number of a certain kind of resource that can be used for |
34 * be used for some purpose, and all of them are already in use (perhaps all by |
33 * some purpose, and all of them are already in use (perhaps all by this |
35 * this application). For an example of the latter case, see the |
34 * application). For an example of the latter case, see the |
36 * {@link Transmitter#setReceiver(Receiver) setReceiver} method of |
35 * {@link Transmitter#setReceiver(Receiver) setReceiver} method of |
37 * <code>Transmitter</code>. |
36 * {@code Transmitter}. |
38 * |
37 * |
39 * @author Kara Kytle |
38 * @author Kara Kytle |
40 */ |
39 */ |
41 public class MidiUnavailableException extends Exception { |
40 public class MidiUnavailableException extends Exception { |
|
41 |
42 private static final long serialVersionUID = 6093809578628944323L; |
42 private static final long serialVersionUID = 6093809578628944323L; |
43 |
43 |
44 /** |
44 /** |
45 * Constructs a <code>MidiUnavailableException</code> that has |
45 * Constructs a {@code MidiUnavailableException} that has {@code null} as |
46 * <code>null</code> as its error detail message. |
46 * its error detail message. |
47 */ |
47 */ |
48 public MidiUnavailableException() { |
48 public MidiUnavailableException() { |
49 |
|
50 super(); |
49 super(); |
51 } |
50 } |
52 |
51 |
53 /** |
52 /** |
54 * Constructs a <code>MidiUnavailableException</code> with the |
53 * Constructs a {@code MidiUnavailableException} with the specified detail |
55 * specified detail message. |
54 * message. |
56 * |
55 * |
57 * @param message the string to display as an error detail message |
56 * @param message the string to display as an error detail message |
58 */ |
57 */ |
59 public MidiUnavailableException(String message) { |
58 public MidiUnavailableException(final String message) { |
60 |
|
61 super(message); |
59 super(message); |
62 } |
60 } |
63 } |
61 } |