KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > sound > midi > MidiUnavailableException


1 /*
2  * @(#)MidiUnavailableException.java 1.13 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package javax.sound.midi;
9
10
11 /**
12  * A <code>MidiUnavailableException</code> is thrown when a requested MIDI
13  * component cannot be opened or created because it is unavailable. This often
14  * occurs when a device is in use by another application. More generally, it
15  * can occur when there is a finite number of a certain kind of resource that can
16  * be used for some purpose, and all of them are already in use (perhaps all by
17  * this application). For an example of the latter case, see the
18  * {@link Transmitter#setReceiver(Receiver) setReceiver} method of
19  * <code>Transmitter</code>.
20  *
21  * @version 1.13, 12/19/03
22  * @author Kara Kytle
23  */

24 public class MidiUnavailableException extends Exception JavaDoc {
25
26     /**
27      * Constructs a <code>MidiUnavailableException</code> that has
28      * <code>null</code> as its error detail message.
29      */

30     public MidiUnavailableException() {
31
32     super();
33     }
34
35
36     /**
37      * Constructs a <code>MidiUnavailableException</code> with the
38      * specified detail message.
39      *
40      * @param message the string to display as an error detail message
41      */

42     public MidiUnavailableException(String JavaDoc message) {
43
44     super(message);
45     }
46 }
47
Popular Tags