org.iges.anagram
Class AnagramError

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Error
              |
              +--org.iges.anagram.AnagramError
All Implemented Interfaces:
java.io.Serializable

public class AnagramError
extends java.lang.Error

Thrown if an unrecoverable error occurs, that normal server code should not try to anticipate.

This class should be used extremely sparingly, and no code should ever attempt to catch it except the top-level error handler in AnagramServlet.

It should not be used for problems which are recoverable, or caused by administrator or user mistakes. These should be handled using AnagramException and its subclasses.

Throwing it should be considered the equivalent of a failed "assert" statement. (In fact once Java 1.4 is widely adopted it may be desirable to eliminate this class).

For instance, appropriate uses might be things like mysteriously missing classes and libraries, or Java core methods which declare an exception, but which should never throw under the circumstances the server is calling them.

Careful use of this class eliminates many unnecessary throws declarations and try blocks for conditions that are not anticipated to occur.

See Also:
AnagramException, Serialized Form

Constructor Summary
AnagramError()
          Creates an AnagramException with no message
AnagramError(java.lang.String message)
          Creates an AnagramException with the message given
 
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

AnagramError

public AnagramError()
Creates an AnagramException with no message


AnagramError

public AnagramError(java.lang.String message)
Creates an AnagramException with the message given