|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.beans.PropertyVetoException
wt.util.WTPropertyVetoException
public class WTPropertyVetoException
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
wt.fc.WTException,
Serialized Form| 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. |
| 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 |
| Constructor Detail |
|---|
public WTPropertyVetoException(String s,
PropertyChangeEvent evt)
s - the detailed message
public WTPropertyVetoException(String rb,
String key,
Object[] params,
PropertyChangeEvent evt)
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.ResourceBundle,
MessageFormat
public WTPropertyVetoException(Throwable t,
String s,
PropertyChangeEvent evt)
t - the embedded Throwable. It may be null.s - the detailed message. It may be null.evt - a PropertyChangeEvent describing the vetoed change.
public WTPropertyVetoException(Throwable t,
String rb,
String key,
Object[] params,
PropertyChangeEvent evt)
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.ResourceBundle,
MessageFormat| Method Detail |
|---|
public String getLocalizedMessage()
getLocalizedMessage in class Throwablepublic String getLocalizedMessage(Locale locale)
getLocalizedMessage in interface LocalizableMessage
public String getLocalizedMessage(Locale locale,
boolean nested)
nested - include nested exceptions in messagepublic String getLocalizedMessage(boolean nested)
nested - include nested exceptions in messagepublic String getMessage()
getMessage in class Throwablepublic Throwable getNestedThrowable()
public void printStackTrace()
WTPropertyVetoException and the backtrace of its most deeply
nested embedded Throwable to the standard error stream.
printStackTrace in class Throwablepublic void printStackTrace(PrintStream s)
WTPropertyVetoException and the backtrace of its most deeply
nested embedded Throwable to the specified print stream.
printStackTrace in class Throwablepublic void printStackTrace(PrintWriter s)
WTPropertyVetoException and the backtrace of its most deeply
nested embedded Throwable to the specified print writer.
printStackTrace in class Throwablepublic String toString()
WTPropertyVetoException. The
description includes the descriptions of the nested throwable objects
that are embedded within this WTPropertyVetoException.
toString in class Throwable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||