Package wt.util

Class WTRemoteException

All Implemented Interfaces:
Serializable, LocalizableMessage, Message

public class WTRemoteException extends RemoteException implements LocalizableMessage
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:
  • Constructor Details

    • WTRemoteException

      public WTRemoteException(String s)
      Constructs a Windchill exception with a non-localizable detailed message.

      Supported API: true
      Parameters:
      s - the detailed message
    • WTRemoteException

      public WTRemoteException(String rb, String key, Object[] params)
      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 message
      params - an optional set of objects to be formatted into the localizable message text.
      See Also:
    • WTRemoteException

      public WTRemoteException(String rb, String key, Object[] params, Throwable t)
      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 message
      params - an optional set of objects to be formatted into the localizable message text.
      See Also:
    • WTRemoteException

      public WTRemoteException(String s, Throwable t)
      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

      public String getLocalizedMessage()
      Returns the localized message, including nested exception.

      Supported API: true
      Overrides:
      getLocalizedMessage in class Throwable
    • getLocalizedMessage

      public String getLocalizedMessage(Locale locale)
      Returns the localized message, for the specified locale, including nested exception.

      Supported API: true
      Specified by:
      getLocalizedMessage in interface LocalizableMessage
      Returns:
      String
    • getLocalizedMessage

      public String getLocalizedMessage(Locale locale, boolean nested)
      Returns the localized message, for the specified locale, optionally including nested exception.

      Supported API: true
      Parameters:
      nested - include nested exceptions in message
    • getLocalizedMessage

      public String getLocalizedMessage(boolean nested)
      Returns the localized message, optionally including nested exception.

      Supported API: true
      Parameters:
      nested - include nested exceptions in message
    • getMessage

      public String getMessage()
      Returns the message.

      Supported API: true
      Overrides:
      getMessage in class RemoteException
    • getNestedThrowable

      public Throwable getNestedThrowable()
      Returns the embedded throwable object.

      Supported API: true
    • newRemoteException

      public 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.

      Supported API: true
    • printStackTrace

      public void printStackTrace()
      Prints this WTRemoteException and the stack trace of its most deeply nested embedded Throwable to the standard error stream.

      Supported API: true
      Overrides:
      printStackTrace in class Throwable
    • printStackTrace

      public void printStackTrace(PrintStream s)
      Prints this WTRemoteException and the stack trace of its most deeply nested embedded Throwable to the specified print stream.

      Supported API: true
      Overrides:
      printStackTrace in class Throwable
    • printStackTrace

      public void printStackTrace(PrintWriter s)
      Prints this WTRemoteException and the stack trace of its most deeply nested embedded Throwable to the specified print writer.

      Supported API: true
      Overrides:
      printStackTrace in class Throwable
    • toString

      public String toString()
      Returns a description of this WTRemoteException. The description includes the descriptions of the nested throwable objects that are embedded within this WTRemoteException.

      Supported API: true
      Overrides:
      toString in class Throwable
    • toString

      public String toString(boolean nested)
      Returns a description of this WTException. The description optionally includes the descriptions of the nested throwable objects that are embedded within this WTException.

      Supported API: true
      Parameters:
      nested - include nested exceptions in message