Package wt.util
Class WTPropertyVetoException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.beans.PropertyVetoException
wt.util.WTPropertyVetoException
- All Implemented Interfaces:
Serializable,LocalizableMessage,Message
WTPropertyVetoException extends the capability of the
java.beans.PropertyVetoException 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.WTPropertyVetoException(String rb, String key, Object[] params, PropertyChangeEvent evt) Constructs a WTPropertyVetoException with a localizable detailed message.Constructs a WTPropertyVetoException with an embedded Throwable object and non-localizable detailed message.WTPropertyVetoException(Throwable t, String rb, String key, Object[] params, PropertyChangeEvent evt) Constructs a WTPropertyVetoException 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) 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 thisWTPropertyVetoExceptionand the backtrace of its most deeply nested embedded Throwable to the standard error stream.voidPrints thisWTPropertyVetoExceptionand the backtrace of its most deeply nested embedded Throwable to the specified print stream.voidPrints thisWTPropertyVetoExceptionand the backtrace of its most deeply nested embedded Throwable to the specified print writer.toString()Returns a description of thisWTPropertyVetoException.Methods inherited from class java.beans.PropertyVetoException
getPropertyChangeEventMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, setStackTrace
-
Constructor Details
-
WTPropertyVetoException
Constructs a Windchill exception with a non-localizable detailed message.
Supported API: true- Parameters:
s- the detailed message
-
WTPropertyVetoException
Constructs a WTPropertyVetoException 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 intoevt- a PropertyChangeEvent describing the vetoed change. the localizable message text.- See Also:
-
WTPropertyVetoException
Constructs a WTPropertyVetoException 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.evt- a PropertyChangeEvent describing the vetoed change.
-
WTPropertyVetoException
public WTPropertyVetoException(Throwable t, String rb, String key, Object[] params, PropertyChangeEvent evt) Constructs a WTPropertyVetoException 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 intoevt- a PropertyChangeEvent describing the vetoed change. the localizable message text.- 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, 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 thisWTPropertyVetoExceptionand the backtrace of its most deeply nested embedded Throwable to the standard error stream.
Supported API: true- Overrides:
printStackTracein classThrowable
-
printStackTrace
Prints thisWTPropertyVetoExceptionand the backtrace of its most deeply nested embedded Throwable to the specified print stream.
Supported API: true- Overrides:
printStackTracein classThrowable
-
printStackTrace
Prints thisWTPropertyVetoExceptionand the backtrace of its most deeply nested embedded Throwable to the specified print writer.
Supported API: true- Overrides:
printStackTracein classThrowable
-
toString
Returns a description of thisWTPropertyVetoException. The description includes the descriptions of the nested throwable objects that are embedded within thisWTPropertyVetoException.
Supported API: true
-