|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.spotfire.server.NestedRuntimeException
public class NestedRuntimeException
A base class for exceptions which can store a cause, just like the java.lang.RuntimeException in J2SDK 1.4. This class is compatible with both J2SDK 1.3 and 1.4.
| Constructor Summary | |
|---|---|
NestedRuntimeException()
Creates a NestedRuntimeException with no specified
detail message or root cause. |
|
NestedRuntimeException(String message)
Creates a NestedRuntimeException with the specified
detail message. |
|
NestedRuntimeException(String message,
Throwable cause)
Creates a NestedRuntimeException with the specified
detail message and cause. |
|
NestedRuntimeException(Throwable cause)
Creates a NestedRuntimeException with the specified
cause and a detail message of (cause==null ? |
|
| Method Summary | |
|---|---|
String |
abbreviatedStackTraceToString()
Returns a String object containing an abbreviated
stack trace for this exception. |
String |
getLocalizedMessage()
Creates a localized description of this throwable. |
String |
getLogDetail()
|
String |
getLogEntry()
|
int |
getLogPriority()
|
ResourceBundle |
getMessageBundle()
|
Object[] |
getMessageParameters()
|
Throwable |
getRootCause()
Follows the chain of causes and returns the last one, which is assumed to be the root cause of the exception. |
boolean |
logStackTrace()
|
void |
setLogDetail(String s)
|
void |
setLogPriority(int priority)
|
void |
setMessageParameters(Object[] parameters)
|
String |
stackTraceToString()
Returns a String object containing this exception's
stack trace. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, 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 NestedRuntimeException()
NestedRuntimeException with no specified
detail message or root cause. The detail message will be set to
null.
public NestedRuntimeException(String message)
NestedRuntimeException with the specified
detail message.
message - the detail message
public NestedRuntimeException(String message,
Throwable cause)
NestedRuntimeException with the specified
detail message and cause.
message - the detail messagecause - the causepublic NestedRuntimeException(Throwable cause)
NestedRuntimeException with the specified
cause and a detail message of (cause==null ? null :
cause.toString()).
cause - the cause| Method Detail |
|---|
public String getLocalizedMessage()
getLocalizedMessage in class Throwablepublic Throwable getRootCause()
public String stackTraceToString()
String object containing this exception's
stack trace.
String formatpublic String abbreviatedStackTraceToString()
String object containing an abbreviated
stack trace for this exception.
String formatpublic ResourceBundle getMessageBundle()
public Object[] getMessageParameters()
public void setMessageParameters(Object[] parameters)
public String getLogEntry()
public String getLogDetail()
public void setLogDetail(String s)
public boolean logStackTrace()
public int getLogPriority()
public void setLogPriority(int priority)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||