acm.util
Class ErrorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
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
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
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