jdk/src/java.desktop/share/classes/javax/sound/midi/InvalidMidiDataException.java
changeset 26037 508779ce6619
parent 26003 d630c97424bd
parent 25859 3317bb8137f4
child 47195 b309b58eb190
equal deleted inserted replaced
25992:e9b05e933ddd 26037:508779ce6619
    23  * questions.
    23  * questions.
    24  */
    24  */
    25 
    25 
    26 package javax.sound.midi;
    26 package javax.sound.midi;
    27 
    27 
    28 
       
    29 /**
    28 /**
    30  * An <code>InvalidMidiDataException</code> indicates that inappropriate MIDI
    29  * An {@code InvalidMidiDataException} indicates that inappropriate MIDI data
    31  * data was encountered. This often means that the data is invalid in and of
    30  * was encountered. This often means that the data is invalid in and of itself,
    32  * itself, from the perspective of the MIDI specification.  An example would
    31  * from the perspective of the MIDI specification. An example would be an
    33  * be an undefined status byte.  However, the exception might simply
    32  * undefined status byte. However, the exception might simply mean that the data
    34  * mean that the data was invalid in the context it was used, or that
    33  * was invalid in the context it was used, or that the object to which the data
    35  * the object to which the data was given was unable to parse or use it.
    34  * was given was unable to parse or use it. For example, a file reader might not
    36  * For example, a file reader might not be able to parse a Type 2 MIDI file, even
    35  * be able to parse a Type 2 MIDI file, even though that format is defined in
    37  * though that format is defined in the MIDI specification.
    36  * the MIDI specification.
    38  *
    37  *
    39  * @author Kara Kytle
    38  * @author Kara Kytle
    40  */
    39  */
    41 public class InvalidMidiDataException extends Exception {
    40 public class InvalidMidiDataException extends Exception {
       
    41 
    42     private static final long serialVersionUID = 2780771756789932067L;
    42     private static final long serialVersionUID = 2780771756789932067L;
    43 
    43 
    44     /**
    44     /**
    45      * Constructs an <code>InvalidMidiDataException</code> with
    45      * Constructs an {@code InvalidMidiDataException} with {@code null} for its
    46      * <code>null</code> for its error detail message.
    46      * error detail message.
    47      */
    47      */
    48     public InvalidMidiDataException() {
    48     public InvalidMidiDataException() {
    49 
    49 
    50         super();
    50         super();
    51     }
    51     }
    52 
    52 
    53     /**
    53     /**
    54      *  Constructs an <code>InvalidMidiDataException</code> with the
    54      * Constructs an {@code InvalidMidiDataException} with the specified detail
    55      * specified detail message.
    55      * message.
    56      *
    56      *
    57      * @param message the string to display as an error detail message
    57      * @param  message the string to display as an error detail message
    58      */
    58      */
    59     public InvalidMidiDataException(String message) {
    59     public InvalidMidiDataException(String message) {
    60 
    60 
    61         super(message);
    61         super(message);
    62     }
    62     }