src/share/classes/javax/sound/sampled/LineUnavailableException.java

Print this page




   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package javax.sound.sampled;
  27 
  28 /**
  29  * A <code>LineUnavailableException</code> is an exception indicating that a
  30  * line cannot be opened because it is unavailable.  This situation
  31  * arises most commonly when a requested line is already in use
  32  * by another application.
  33  *
  34  * @author Kara Kytle
  35  * @since 1.3
  36  */
  37 /*
  38  * A <code>LinenavailableException</code> is an exception indicating that a
  39  * line annot be opened because it is unavailable.  This situation
  40  * arises most commonly when a line is requested when it is already in use
  41  * by another application.
  42  *
  43  * @author Kara Kytle
  44  */
  45 
  46 public class LineUnavailableException extends Exception {

  47     private static final long serialVersionUID = -2046718279487432130L;
  48 
  49     /**
  50      * Constructs a <code>LineUnavailableException</code> that has
  51      * <code>null</code> as its error detail message.
  52      */
  53     public LineUnavailableException() {
  54 
  55         super();
  56     }
  57 
  58     /**
  59      * Constructs a <code>LineUnavailableException</code> that has
  60      * the specified detail message.
  61      *
  62      * @param message a string containing the error detail message
  63      */
  64     public LineUnavailableException(String message) {
  65 
  66         super(message);
  67     }
  68 }


   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package javax.sound.sampled;
  27 
  28 /**
  29  * A {@code LineUnavailableException} is an exception indicating that a line
  30  * cannot be opened because it is unavailable. This situation arises most
  31  * commonly when a requested line is already in use by another application.

  32  *
  33  * @author Kara Kytle
  34  * @since 1.3
  35  */









  36 public class LineUnavailableException extends Exception {
  37 
  38     private static final long serialVersionUID = -2046718279487432130L;
  39 
  40     /**
  41      * Constructs a {@code LineUnavailableException} that has {@code null} as
  42      * its error detail message.
  43      */
  44     public LineUnavailableException() {

  45         super();
  46     }
  47 
  48     /**
  49      * Constructs a {@code LineUnavailableException} that has the specified
  50      * detail message.
  51      *
  52      * @param  message a string containing the error detail message
  53      */
  54     public LineUnavailableException(final String message) {

  55         super(message);
  56     }
  57 }