|
|||||||||||
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
wt.util.WTRuntimeException
WTRuntimeException
extends the capability of the java.lang.RuntimeException
in that like the wt.util.WTException
, it accommodates nested
exceptions and localizable text messages.
Supported API: true
Extendable: true
Field Summary | |
private static String |
CLASSNAME
|
private static String |
RESOURCE
|
private WTException |
wte
|
Fields inherited from class java.lang.RuntimeException |
|
Fields inherited from class java.lang.Throwable |
|
Constructor Summary | |
WTRuntimeException(String s)
Constructs a Windchill exception with a non-localizable detailed message. |
|
WTRuntimeException(String rb,
String key,
Object[] params)
Constructs a WTRuntimeException with a localizable detailed message. |
|
WTRuntimeException(Throwable t)
Constructs a WTRuntimeException with an embedded Throwable object. |
|
WTRuntimeException(Throwable t,
String s)
Constructs a WTRuntimeException with an embedded Throwable object and non-localizable detailed message. |
|
WTRuntimeException(Throwable t,
String rb,
String key,
Object[] params)
Constructs a WTRuntimeException with an embedded Throwable object and a localizable detailed message. |
Method Summary | |
String |
getLocalizedMessage()
Returns the localized message, including nested exception. |
String |
getLocalizedMessage(boolean nested)
Returns the localized message, optionally including nested exception. |
String |
getLocalizedMessage(Locale locale)
Obtain a message, localized to the specified locale. |
String |
getLocalizedMessage(Locale locale,
boolean nested)
Returns the localized message, for the specified locale, optionally including nested exception. |
String |
getMessage()
Returns the message. |
Throwable |
getNestedThrowable()
Returns the embedded throwable object. |
void |
printStackTrace()
Prints this WTRuntimeException and the stack trace of its most deeply
nested embedded Throwable to the standard error stream. |
void |
printStackTrace(PrintStream s)
Prints this WTRuntimeException and the stack trace of its most deeply
nested embedded Throwable to the specified print stream. |
void |
printStackTrace(PrintWriter s)
Prints this WTRuntimeException and the stack trace of its most deeply
nested embedded Throwable to the specified print writer. |
String |
toString()
Returns a description of this WTRuntimeException . |
String |
toString(boolean nested)
Returns a description of this WTException . |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getStackTrace, initCause, setStackTrace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private WTException wte
Constructor Detail |
public WTRuntimeException(String s)
s
- the detailed messagepublic WTRuntimeException(String rb, String key, Object[] params)
rb
- the name of the base resource bundle subclass containing
the localizable message.key
- the key associated with the localizable messageparams
- an optional set of objects to be formatted into
the localizable message text.ResourceBundle
,
MessageFormat
public WTRuntimeException(Throwable t)
t
- the embedded Throwable.public WTRuntimeException(Throwable t, String s)
s
- the detailed message.t
- the embedded Throwable.public WTRuntimeException(Throwable t, String rb, String key, Object[] params)
rb
- the name of the base resource bundle subclass containing
the localizable message.key
- the key associated with the localizable messageparams
- an optional set of objects to be formatted into
the localizable message text.t
- the embedded Throwable. It may be null.ResourceBundle
,
MessageFormat
Method Detail |
public String getLocalizedMessage(Locale locale)
getLocalizedMessage
in interface LocalizableMessage
locale
-
public String getLocalizedMessage()
public String getLocalizedMessage(Locale locale, boolean nested)
nested
- include nested exceptions in messagepublic String getLocalizedMessage(boolean nested)
nested
- include nested exceptions in messagepublic String getMessage()
public Throwable getNestedThrowable()
public void printStackTrace()
WTRuntimeException
and the stack trace of its most deeply
nested embedded Throwable to the standard error stream.
public void printStackTrace(PrintStream s)
WTRuntimeException
and the stack trace of its most deeply
nested embedded Throwable to the specified print stream.
public void printStackTrace(PrintWriter s)
WTRuntimeException
and the stack trace of its most deeply
nested embedded Throwable to the specified print writer.
public String toString()
WTRuntimeException
. The
description includes the descriptions of the nested throwable objects
that are embedded within this WTRuntimeException
.
public String toString(boolean nested)
WTException
. The
description optionally includes the descriptions of the nested throwable
objects that are embedded within this WTException
.
nested
- include nested exceptions in message
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |