Package wt.util
Class WTRemoteException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
java.rmi.RemoteException
wt.util.WTRemoteException
- All Implemented Interfaces:
Serializable,LocalizableMessage,Message
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
- See Also:
-
wt.fc.WTException- Serialized Form
-
Field Summary
Fields inherited from class java.rmi.RemoteException
detail -
Constructor Summary
ConstructorsConstructorDescriptionConstructs 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
Modifier and TypeMethodDescriptionReturns the localized message, including nested exception.getLocalizedMessage(boolean nested) Returns the localized message, optionally including nested exception.getLocalizedMessage(Locale locale) Returns the localized message, for the specified locale, including nested exception.getLocalizedMessage(Locale locale, boolean nested) Returns the localized message, for the specified locale, optionally including nested exception.Returns the message.Returns the embedded throwable object.static RemoteExceptionnewRemoteException(String msg, Throwable t) Factory method typed asRemoteExceptionto allow bytecode verification of classes that use this factory method to defer loadingWTRemoteExceptionuntil necessary.voidPrints thisWTRemoteExceptionand the stack trace of its most deeply nested embedded Throwable to the standard error stream.voidPrints thisWTRemoteExceptionand the stack trace of its most deeply nested embedded Throwable to the specified print stream.voidPrints thisWTRemoteExceptionand the stack trace of its most deeply nested embedded Throwable to the specified print writer.toString()Returns a description of thisWTRemoteException.toString(boolean nested) Returns a description of thisWTException.Methods inherited from class java.rmi.RemoteException
getCauseMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getStackTrace, getSuppressed, initCause, setStackTrace
-
Constructor Details
-
WTRemoteException
Constructs a Windchill exception with a non-localizable detailed message.
Supported API: true- Parameters:
s- the detailed message
-
WTRemoteException
Constructs a WTRemoteException with a localizable detailed message.
Supported API: true- Parameters:
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.- See Also:
-
WTRemoteException
Constructs a WTRemoteException with an embedded Throwable object and a localizable detailed message.
Supported API: true- Parameters:
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.- See Also:
-
WTRemoteException
Constructs a WTRemoteException with an embedded Throwable object and non-localizable detailed message.
Supported API: true- Parameters:
t- the embedded Throwable. It may be null.s- the detailed message. It may be null.
-
-
Method Details
-
getLocalizedMessage
Returns the localized message, including nested exception.
Supported API: true- Overrides:
getLocalizedMessagein classThrowable
-
getLocalizedMessage
Returns the localized message, for the specified locale, including nested exception.
Supported API: true- Specified by:
getLocalizedMessagein interfaceLocalizableMessage- Returns:
- String
-
getLocalizedMessage
Returns the localized message, for the specified locale, optionally including nested exception.
Supported API: true- Parameters:
nested- include nested exceptions in message
-
getLocalizedMessage
Returns the localized message, optionally including nested exception.
Supported API: true- Parameters:
nested- include nested exceptions in message
-
getMessage
Returns the message.
Supported API: true- Overrides:
getMessagein classRemoteException
-
getNestedThrowable
Returns the embedded throwable object.
Supported API: true -
newRemoteException
Factory method typed asRemoteExceptionto allow bytecode verification of classes that use this factory method to defer loadingWTRemoteExceptionuntil necessary.
Supported API: true -
printStackTrace
public void printStackTrace()Prints thisWTRemoteExceptionand the stack trace of its most deeply nested embedded Throwable to the standard error stream.
Supported API: true- Overrides:
printStackTracein classThrowable
-
printStackTrace
Prints thisWTRemoteExceptionand the stack trace of its most deeply nested embedded Throwable to the specified print stream.
Supported API: true- Overrides:
printStackTracein classThrowable
-
printStackTrace
Prints thisWTRemoteExceptionand the stack trace of its most deeply nested embedded Throwable to the specified print writer.
Supported API: true- Overrides:
printStackTracein classThrowable
-
toString
Returns a description of thisWTRemoteException. The description includes the descriptions of the nested throwable objects that are embedded within thisWTRemoteException.
Supported API: true -
toString
Returns a description of thisWTException. The description optionally includes the descriptions of the nested throwable objects that are embedded within thisWTException.
Supported API: true- Parameters:
nested- include nested exceptions in message
-