1. /*
  2. * @(#)InvalidMidiDataException.java 1.10 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package javax.sound.midi;
  8. /**
  9. * An <code>InvalidMidiDataException</code> indicates that inappropriate MIDI
  10. * data was encountered. This often means that the data is invalid in and of
  11. * itself, from the perspective of the MIDI specification. An example would
  12. * be an undefined status byte. However, the exception might simply
  13. * mean that the data was invalid in the context it was used, or that
  14. * the object to which the data was given was unable to parse or use it.
  15. * For example, a file reader might not be able to parse a Type 2 MIDI file, even
  16. * though that format is defined in the MIDI specification.
  17. *
  18. * @version 1.10, 01/23/03
  19. * @author Kara Kytle
  20. */
  21. public class InvalidMidiDataException extends Exception {
  22. /**
  23. * Constructs an <code>InvalidMidiDataException</code> with
  24. * <code>null</code> for its error detail message.
  25. */
  26. public InvalidMidiDataException() {
  27. super();
  28. }
  29. /**
  30. * Constructs an <code>InvalidMidiDataException</code> with the
  31. * specified detail message.
  32. *
  33. * @param message the string to display as an error detail message
  34. */
  35. public InvalidMidiDataException(String message) {
  36. super(message);
  37. }
  38. }