1 /* 2 * @(#)InvalidMidiDataException.java 1.11 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 * An <code>InvalidMidiDataException</code> indicates that inappropriate MIDI 13 * data was encountered. This often means that the data is invalid in and of 14 * itself, from the perspective of the MIDI specification. An example would 15 * be an undefined status byte. However, the exception might simply 16 * mean that the data was invalid in the context it was used, or that 17 * the object to which the data was given was unable to parse or use it. 18 * For example, a file reader might not be able to parse a Type 2 MIDI file, even 19 * though that format is defined in the MIDI specification. 20 * 21 * @version 1.11, 12/19/03 22 * @author Kara Kytle 23 */ 24 public class InvalidMidiDataException extends Exception { 25 26 /** 27 * Constructs an <code>InvalidMidiDataException</code> with 28 * <code>null</code> for its error detail message. 29 */ 30 public InvalidMidiDataException() { 31 32 super(); 33 } 34 35 36 /** 37 * Constructs an <code>InvalidMidiDataException</code> with the 38 * specified detail message. 39 * 40 * @param message the string to display as an error detail message 41 */ 42 public InvalidMidiDataException(String message) { 43 44 super(message); 45 } 46 } 47