Lines Matching refs:InvalidMidiDataException

197      * @throws InvalidMidiDataException if {@code status} does not specify
205 public ShortMessage(int status) throws InvalidMidiDataException {
207 setMessage(status); // can throw InvalidMidiDataException
221 * @throws InvalidMidiDataException if the status byte or all data bytes
232 throws InvalidMidiDataException {
234 setMessage(status, data1, data2); // can throw InvalidMidiDataException
249 * @throws InvalidMidiDataException if the command value, channel value
262 throws InvalidMidiDataException {
286 * @throws <code>InvalidMidiDataException</code> if <code>status</code> does not
291 public void setMessage(int status) throws InvalidMidiDataException {
293 int dataLength = getDataLength(status); // can throw InvalidMidiDataException
295 throw new InvalidMidiDataException("Status byte; " + status + " requires " + dataLength + " data bytes");
310 * @throws <code>InvalidMidiDataException</code> if the
316 public void setMessage(int status, int data1, int data2) throws InvalidMidiDataException {
318 int dataLength = getDataLength(status); // can throw InvalidMidiDataException
321 throw new InvalidMidiDataException("data1 out of range: " + data1);
325 throw new InvalidMidiDataException("data2 out of range: " + data2);
360 * @throws <code>InvalidMidiDataException</code> if the
371 public void setMessage(int command, int channel, int data1, int data2) throws InvalidMidiDataException {
374 throw new InvalidMidiDataException("command out of range: 0x" + Integer.toHexString(command));
377 throw new InvalidMidiDataException("channel out of range: " + channel);
453 * @throws <code>InvalidMidiDataException</code> if the
457 protected final int getDataLength(int status) throws InvalidMidiDataException {
492 throw new InvalidMidiDataException("Invalid status byte: " + status);