Class ErrorException

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by acm.util.ErrorException
All Implemented Interfaces:

public class ErrorException
extends RuntimeException

This class allows errors to be reported in a consistent way. Clients typically call

      throw new ErrorException(msg);

Because ErrorException is a subclass of RuntimeException, this exception need not be declared in throws clauses.

See Also:
Serialized Form

Constructor Summary
ErrorException(Exception ex)
          Creates an ErrorException using an existing exception.
ErrorException(String msg)
          Creates an ErrorException with the specified 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

Constructor Detail


public ErrorException(Exception ex)
Creates an ErrorException using an existing exception.

ex - The exception to be reported


public ErrorException(String msg)
Creates an ErrorException with the specified message.

msg - The error message to be reported