|
|||||||||
| 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.io.IOException
java.rmi.RemoteException
wt.util.WTRemoteException
public class WTRemoteException
WTRemoteException extends the capability of the
java.lang.RemoteException in that like the
wt.util.WTException, it accommodates nested exceptions
and localizable text messages.
Supported API: true
Extendable: false
wt.fc.WTException,
Serialized Form| Field Summary |
|---|
| Fields inherited from class java.rmi.RemoteException |
|---|
detail |
| Constructor Summary | |
|---|---|
WTRemoteException(String s)
Constructs a Windchill exception with a non-localizable detailed message. |
|
WTRemoteException(String rb,
String key,
Object[] params)
Constructs a WTRemoteException with a localizable detailed message. |
|
WTRemoteException(String rb,
String key,
Object[] params,
Throwable t)
Constructs a WTRemoteException with an embedded Throwable object and a localizable detailed message. |
|
WTRemoteException(String s,
Throwable t)
Constructs a WTRemoteException with an embedded Throwable object and non-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)
Returns the localized message, for the specified locale, including nested exception. |
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. |
static RemoteException |
newRemoteException(String msg,
Throwable t)
Factory method typed as RemoteException to allow bytecode verification
of classes that use this factory method to defer loading WTRemoteException
until necessary. |
void |
printStackTrace()
Prints this WTRemoteException and the stack trace of its most deeply
nested embedded Throwable to the standard error stream. |
void |
printStackTrace(PrintStream s)
Prints this WTRemoteException and the stack trace of its most deeply
nested embedded Throwable to the specified print stream. |
void |
printStackTrace(PrintWriter s)
Prints this WTRemoteException and the stack trace of its most deeply
nested embedded Throwable to the specified print writer. |
String |
toString()
Returns a description of this WTRemoteException. |
String |
toString(boolean nested)
Returns a description of this WTException. |
| Methods inherited from class java.rmi.RemoteException |
|---|
getCause |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getStackTrace, initCause, setStackTrace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WTRemoteException(String s)
s - the detailed message
public WTRemoteException(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 WTRemoteException(String rb,
String key,
Object[] params,
Throwable t)
t - the embedded Throwable. It may be null.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 WTRemoteException(String s,
Throwable t)
t - the embedded Throwable. It may be null.s - the detailed message. It may be null.| Method Detail |
|---|
public String getLocalizedMessage()
getLocalizedMessage in class Throwablepublic String getLocalizedMessage(Locale locale)
getLocalizedMessage in interface LocalizableMessage
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()
getMessage in class RemoteExceptionpublic Throwable getNestedThrowable()
public static RemoteException newRemoteException(String msg,
Throwable t)
RemoteException to allow bytecode verification
of classes that use this factory method to defer loading WTRemoteException
until necessary.
public void printStackTrace()
WTRemoteException and the stack trace of its most deeply
nested embedded Throwable to the standard error stream.
printStackTrace in class Throwablepublic void printStackTrace(PrintStream s)
WTRemoteException and the stack trace of its most deeply
nested embedded Throwable to the specified print stream.
printStackTrace in class Throwablepublic void printStackTrace(PrintWriter s)
WTRemoteException and the stack trace of its most deeply
nested embedded Throwable to the specified print writer.
printStackTrace in class Throwablepublic String toString()
WTRemoteException. The
description includes the descriptions of the nested throwable objects
that are embedded within this WTRemoteException.
toString in class Throwablepublic 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 | ||||||||