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