wt.util
Class WTPropertyVetoException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.beans.PropertyVetoException
              extended bywt.util.WTPropertyVetoException
All Implemented Interfaces:
LocalizableMessage, Message, Serializable

public class WTPropertyVetoException
extends PropertyVetoException
implements LocalizableMessage

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

Field Summary
private static String versionID
           
private  WTException wte
           
 
Fields inherited from class java.beans.PropertyVetoException
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
WTPropertyVetoException(String s, PropertyChangeEvent evt)
          Constructs 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.
WTPropertyVetoException(Throwable t, String s, PropertyChangeEvent evt)
          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
 String getLocalizedMessage()
          Returns the localized message, including nested exception.
 String getLocalizedMessage(boolean nested)
          Returns the localized message, optionally including nested exception.
 String getLocalizedMessage(Locale locale)
          Returns the localized message, for the specified locale, including nested exception.
 String getLocalizedMessage(Locale locale, boolean nested)
          Returns the localized message, for the specified locale, optionally including nested exception.
 String getMessage()
          Returns the message.
 Throwable getNestedThrowable()
          Returns the embedded throwable object.
 void printStackTrace()
          Prints this WTPropertyVetoException and the backtrace of its most deeply nested embedded Throwable to the standard error stream.
 void printStackTrace(PrintStream s)
          Prints this WTPropertyVetoException and the backtrace of its most deeply nested embedded Throwable to the specified print stream.
 void printStackTrace(PrintWriter s)
          Prints this WTPropertyVetoException and the backtrace of its most deeply nested embedded Throwable to the specified print writer.
 String toString()
          Returns a description of this WTPropertyVetoException.
private  String toString(boolean nested)
          Returns a description of this WTException.
 
Methods inherited from class java.beans.PropertyVetoException
getPropertyChangeEvent
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

versionID

private static final String versionID
See Also:
Constant Field Values

wte

private WTException wte
Constructor Detail

WTPropertyVetoException

public WTPropertyVetoException(String s,
                               PropertyChangeEvent evt)
Constructs a Windchill exception with a non-localizable detailed message.

Supported API: true

Parameters:
s - the detailed message

WTPropertyVetoException

public WTPropertyVetoException(String rb,
                               String key,
                               Object[] params,
                               PropertyChangeEvent evt)
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 message
params - an optional set of objects to be formatted into
evt - a PropertyChangeEvent describing the vetoed change. the localizable message text.
See Also:
ResourceBundle, MessageFormat

WTPropertyVetoException

public WTPropertyVetoException(Throwable t,
                               String s,
                               PropertyChangeEvent evt)
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 message
params - an optional set of objects to be formatted into
evt - a PropertyChangeEvent describing the vetoed change. the localizable message text.
See Also:
ResourceBundle, MessageFormat
Method Detail

getLocalizedMessage

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

Supported API: true


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
Parameters:
locale -
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


getNestedThrowable

public Throwable getNestedThrowable()
Returns the embedded throwable object.

Supported API: true


printStackTrace

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

Supported API: true


printStackTrace

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

Supported API: true


printStackTrace

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

Supported API: true


toString

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

Supported API: true


toString

private 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