|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception oracle.ide.util.NestedException
This is a utility exception which can be used to nest another exception (usually the exception that caused this one to take place).
Field Summary | |
protected static int |
DEFAULT_SEVERITY
|
static int |
SEV_DONT_DISPLAY
Signals that this exception should never be displayed for the user but is being used by the code logic to escape from some situation (e.g. |
static int |
SEV_ERROR
Signals that this exception is a normal error message. |
static int |
SEV_FATAL
Signals that this exception is a fatal error. |
static int |
SEV_INFORMATIONAL
Signals that this exception is an informational message and can safely be ignored by the user |
static int |
SEV_WARNING
Signals that this exception is a warning message. |
Constructor Summary | |
NestedException()
Construct an empty nested exception. |
|
NestedException(java.lang.String error)
Construct a NestedException with the specified error message. |
|
NestedException(java.lang.String error,
int severity)
Construct a NestedException with the specified error message. |
|
NestedException(java.lang.String error,
java.lang.Object[] subst)
|
|
NestedException(java.lang.String error,
java.lang.Object[] subst,
int severity)
|
|
NestedException(java.lang.String error,
java.lang.Object[] subst,
java.lang.Throwable target)
|
|
NestedException(java.lang.String error,
java.lang.Object[] subst,
java.lang.Throwable target,
int severity)
|
|
NestedException(java.lang.String error,
java.lang.Throwable target)
Construct a NestedException with an error message, a target throwable and indicate whether it was an expected error |
|
NestedException(java.lang.String error,
java.lang.Throwable target,
int severity)
Construct a NestedException with an error message, a target throwable and indicate whether it was an expected error |
|
NestedException(java.lang.Throwable target)
|
|
NestedException(java.lang.Throwable target,
int severity)
|
Method Summary | |
int |
getSeverity()
How severe was the exception? This is used by the exception handler to determine how to display the error message for the exception. |
static java.lang.String |
getStackTrace(java.lang.Throwable t)
Given an exception, get the stack trace as a String. |
java.lang.Throwable |
getTarget()
Get the exception that caused this exception |
java.lang.String |
getTitle()
Get the title to use when this exception is displayed in an alert. |
void |
setSeverity(int severity)
|
void |
setTarget(java.lang.Throwable target)
Set the exception that caused this exception |
void |
setTitle(java.lang.String title)
Sets the title to use when this exception is displayed in an alert. |
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 |
Field Detail |
public static final int SEV_DONT_DISPLAY
public static final int SEV_INFORMATIONAL
public static final int SEV_WARNING
public static final int SEV_ERROR
public static final int SEV_FATAL
protected static final int DEFAULT_SEVERITY
Constructor Detail |
public NestedException()
public NestedException(java.lang.String error, int severity)
public NestedException(java.lang.String error, java.lang.Object[] subst, int severity)
public NestedException(java.lang.Throwable target, int severity)
public NestedException(java.lang.String error, java.lang.Throwable target, int severity)
error
- the error message. May be null.target
- An exception which caused this exception. May be null.public NestedException(java.lang.String error, java.lang.Object[] subst, java.lang.Throwable target, int severity)
public NestedException(java.lang.String error)
public NestedException(java.lang.String error, java.lang.Object[] subst)
public NestedException(java.lang.Throwable target)
public NestedException(java.lang.String error, java.lang.Throwable target)
error
- the error message. May be null.target
- An exception which caused this exception. May be null.public NestedException(java.lang.String error, java.lang.Object[] subst, java.lang.Throwable target)
Method Detail |
public void setSeverity(int severity)
public int getSeverity()
public void setTarget(java.lang.Throwable target)
public java.lang.Throwable getTarget()
public static java.lang.String getStackTrace(java.lang.Throwable t)
public void setTitle(java.lang.String title)
title
- the text to display in alerts for this exceptionpublic java.lang.String getTitle()
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.