public class ErrorException
extends java.lang.RuntimeException
throw new ErrorException(msg);
Because ErrorException
is a subclass of RuntimeException
,
this exception need not be declared in throws
clauses.
Constructor and Description |
---|
ErrorException(java.lang.Exception ex)
Creates an
ErrorException using an existing exception. |
ErrorException(java.lang.String msg)
Creates an
ErrorException with the specified message. |
public ErrorException(java.lang.String msg)
ErrorException
with the specified message.msg
- The error message to be reportedpublic ErrorException(java.lang.Exception ex)
ErrorException
using an existing exception.ex
- The exception to be reported