errors
Class GUIFileException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by errors.GUIFileException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BadAttributeException, BadChildWidgetException, BadOptionException, BadWidgetTypeException, DuplicateIdentifierException, SyntaxException

public abstract class GUIFileException
extends Exception

The superclass of all exceptions arising from errors in the .gui file. All constructors of this class require a line number. Pass -1 for an unknown line number (then fix the code so the line number is known!).

See Also:
Serialized Form

Field Summary
 int lineNum
          The number of the line at which the error occurred.
 
Constructor Summary
GUIFileException(int lineNum)
          Use the generic exception message.
GUIFileException(String msg, int lineNum)
          Use a given message.
GUIFileException(String msg, Throwable cause, int lineNum)
          Use a given message and cause.
GUIFileException(Throwable cause, int lineNum)
          Use a given cause and the generic exception message.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

lineNum

public final int lineNum
The number of the line at which the error occurred. If the error occurred over a range of lines, this should be the first of those lines.

Constructor Detail

GUIFileException

public GUIFileException(int lineNum)
Use the generic exception message.

Parameters:
lineNum - The line number of the error.

GUIFileException

public GUIFileException(String msg,
                        int lineNum)
Use a given message. Prepends "line ##: " to the message, where ## is the line number.

Parameters:
msg - The error message.
lineNum - The line number of the error.

GUIFileException

public GUIFileException(String msg,
                        Throwable cause,
                        int lineNum)
Use a given message and cause.

Parameters:
msg - The error message.
cause - The Throwable next in the cause chain.
lineNum - The line number of the error.

GUIFileException

public GUIFileException(Throwable cause,
                        int lineNum)
Use a given cause and the generic exception message.

Parameters:
cause - The Throwable next in the cause chain.
lineNum - The line number of the error.