org.jfugue
Class JFugueException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--org.jfugue.JFugueException
All Implemented Interfaces:
java.io.Serializable

public class JFugueException
extends java.lang.Exception

Handles JFugue parsing exceptions.

Version:
2.0
Author:
David Koelle
See Also:
Serialized Form

Field Summary
static java.lang.String CONTROL_EXC
          The index of the Controller command, Xindex=value, is not a valid controller.
static java.lang.String CONTROL_FORMAT_EXC
          The Controller command, Xindex=value, is malformed.
static java.lang.String EXPECTED_BYTE
          The parser expected a byte.
static java.lang.String EXPECTED_DOUBLE
          The parser expected a double.
static java.lang.String EXPECTED_INT
          The parser expected an int.
static java.lang.String EXPECTED_LONG
          The parser expected a long.
static java.lang.String INSTRUMENT_EXC
          The Instrument command, Iinstrument, is not a valid instrument.
static java.lang.String NOTE_EXC
          The Note command does not specify a valid percussion sound.
static java.lang.String NOTE_OCTAVE_EXC
          The Octave value calculated by the parser is out of range.
static java.lang.String OCTAVE_EXC
          The Octave specifier within the Note command is out of range.
static java.lang.String PARSER_SPACES_EXC
          The parser encountered spaces in a single token.
static java.lang.String TEMPO_EXC
          The Tempo command, Ttempo, is out of range.
static java.lang.String VOICE_EXC
          The Voice command, Vvoice, is out of range.
static java.lang.String WORD_NOT_DEFINED_EXC
          The parser cannot find a definition for the given word.
 
Constructor Summary
JFugueException(java.lang.String exc, java.lang.String param, java.lang.String token)
          Create a new JFugueException.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VOICE_EXC

public static final java.lang.String VOICE_EXC
The Voice command, Vvoice, is out of range.

TEMPO_EXC

public static final java.lang.String TEMPO_EXC
The Tempo command, Ttempo, is out of range.

INSTRUMENT_EXC

public static final java.lang.String INSTRUMENT_EXC
The Instrument command, Iinstrument, is not a valid instrument.

CONTROL_EXC

public static final java.lang.String CONTROL_EXC
The index of the Controller command, Xindex=value, is not a valid controller.

NOTE_EXC

public static final java.lang.String NOTE_EXC
The Note command does not specify a valid percussion sound.

OCTAVE_EXC

public static final java.lang.String OCTAVE_EXC
The Octave specifier within the Note command is out of range.

NOTE_OCTAVE_EXC

public static final java.lang.String NOTE_OCTAVE_EXC
The Octave value calculated by the parser is out of range.

PARSER_SPACES_EXC

public static final java.lang.String PARSER_SPACES_EXC
The parser encountered spaces in a single token.

WORD_NOT_DEFINED_EXC

public static final java.lang.String WORD_NOT_DEFINED_EXC
The parser cannot find a definition for the given word.

CONTROL_FORMAT_EXC

public static final java.lang.String CONTROL_FORMAT_EXC
The Controller command, Xindex=value, is malformed.

EXPECTED_BYTE

public static final java.lang.String EXPECTED_BYTE
The parser expected a byte.

EXPECTED_LONG

public static final java.lang.String EXPECTED_LONG
The parser expected a long.

EXPECTED_INT

public static final java.lang.String EXPECTED_INT
The parser expected an int.

EXPECTED_DOUBLE

public static final java.lang.String EXPECTED_DOUBLE
The parser expected a double.
Constructor Detail

JFugueException

public JFugueException(java.lang.String exc,
                       java.lang.String param,
                       java.lang.String token)
Create a new JFugueException.
Parameters:
exc - the string representing the exception. This should contain the * character, so 'param' can be placed into the string.
param - the direct object of the exception, the thing that has had some problem with it
token - the token or dictionary entry in which the exception has been discovered