edu.neu.ccs.util
Class JPTError

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Error
          extended byedu.neu.ccs.util.JPTError
All Implemented Interfaces:
ConsoleAware, Serializable

public class JPTError
extends Error
implements ConsoleAware

An error thrown in the JPT that indicates a programming problem rather than a user or system error, which should not need to be caught within an application or applet. In the debug state, a JPTError is handled automatically by the toolkit and is presented to the programmer to signal that a grave programming error has occurred in the running program.

Since:
1.0
Version:
2.2
See Also:
JPTUtilities.setDebugMode(boolean), JPTUtilities.isDebugModeSet(), Serialized Form

Field Summary
 
Fields inherited from class java.lang.Error
 
Fields inherited from class java.lang.Throwable
 
Fields inherited from interface edu.neu.ccs.console.ConsoleAware
console
 
Constructor Summary
JPTError()
          Constructor for an error with no detail message.
JPTError(String errorMessage)
          Constructor for an error with the given detail message.
 
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
 

Constructor Detail

JPTError

public JPTError()
Constructor for an error with no detail message.

See Also:
JPTError(String)

JPTError

public JPTError(String errorMessage)
Constructor for an error with the given detail message.

Parameters:
errorMessage - the detail message for the error
See Also:
JPTError()