acm.util
Class ErrorException

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

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

ErrorException

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

Parameters:
ex - The exception to be reported

ErrorException

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

Parameters:
msg - The error message to be reported