Package wt.util
Class WTRuntimeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
wt.util.WTRuntimeException
- All Implemented Interfaces:
Serializable,LocalizableMessage,Message
- Direct Known Subclasses:
ComparisonImpossibleException,EffFormatException,WTInvalidParameterException
public class WTRuntimeException
extends RuntimeException
implements LocalizableMessage, Serializable
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
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a Windchill exception with a non-localizable detailed message.WTRuntimeException(String rb, String key, Object[] params) Constructs a WTRuntimeException with a localizable detailed message.Constructs a WTRuntimeException with an embedded Throwable object.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
Modifier and TypeMethodDescriptionReturns the localized message, including nested exception.getLocalizedMessage(boolean nested) Returns the localized message, optionally 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.voidPrints thisWTRuntimeExceptionand the stack trace of its most deeply nested embedded Throwable to the standard error stream.voidPrints thisWTRuntimeExceptionand the stack trace of its most deeply nested embedded Throwable to the specified print stream.voidPrints thisWTRuntimeExceptionand the stack trace of its most deeply nested embedded Throwable to the specified print writer.toString()Returns a description of thisWTRuntimeException.toString(boolean nested) Returns a description of thisWTException.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getStackTrace, getSuppressed, setStackTrace
-
Constructor Details
-
WTRuntimeException
Constructs a Windchill exception with a non-localizable detailed message.
Supported API: true- Parameters:
s- the detailed message
-
WTRuntimeException
Constructs a WTRuntimeException 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:
-
WTRuntimeException
Constructs a WTRuntimeException with an embedded Throwable object. message.
Supported API: true- Parameters:
t- the embedded Throwable.
-
WTRuntimeException
Constructs a WTRuntimeException with an embedded Throwable object and non-localizable detailed message.
Supported API: true- Parameters:
s- the detailed message.t- the embedded Throwable.
-
WTRuntimeException
Constructs a WTRuntimeException with an embedded Throwable object and 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.t- the embedded Throwable. It may be null.- See Also:
-
-
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, 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 classThrowable
-
getNestedThrowable
Returns the embedded throwable object.
Supported API: true -
printStackTrace
public void printStackTrace()Prints thisWTRuntimeExceptionand the stack trace of its most deeply nested embedded Throwable to the standard error stream.
Supported API: true- Overrides:
printStackTracein classThrowable
-
printStackTrace
Prints thisWTRuntimeExceptionand the stack trace of its most deeply nested embedded Throwable to the specified print stream.
Supported API: true- Overrides:
printStackTracein classThrowable
-
printStackTrace
Prints thisWTRuntimeExceptionand 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 thisWTRuntimeException. The description includes the descriptions of the nested throwable objects that are embedded within thisWTRuntimeException.
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
-