wt.util.xml
Class WTSAXException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.xml.sax.SAXException
              extended bywt.util.xml.WTSAXException
All Implemented Interfaces:
LocalizableMessage, Message, Serializable
Direct Known Subclasses:
MsProjectXMLParseException

public class WTSAXException
extends SAXException
implements LocalizableMessage

Extends the capability of the org.xml.sax.SAXException in that, like the wt.util.WTException, it accommodates nested exceptions and localizable text messages.

Supported API: true

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private static String RESOURCE
           
private  WTException wte
           
 
Fields inherited from class org.xml.sax.SAXException
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
WTSAXException(String s)
          Constructs a Windchill exception with a non-localizable detailed message.
WTSAXException(String rb, String key, Object[] params)
          Constructs a new exception from a resource bundle, its key, and an array of objects for insertion into the keyed resource bundle's message.
WTSAXException(Throwable t, String s)
          Constructs a WTSAXException with an embedded Throwable object and a localizable detailed message.
WTSAXException(Throwable t, String rb, String key, Object[] params)
          Constructs a new exception with a nested exception from a resource bundle, its key, and an array of objects for insertion into the keyed resource bundle's message.
 
Method Summary
 String getLocalizedMessage()
          

Supported API: false
 String getLocalizedMessage(boolean nested)
          Returns the localized message, optionally including nested exception.
 String getLocalizedMessage(Locale locale)
          Obtain a message, localized to the specified locale.
 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 WTSAXException and the stack trace of its most deeply nested embedded Throwable to the standard error stream.
 void printStackTrace(PrintStream s)
          Prints this WTSAXException and the stack trace of its most deeply nested embedded Throwable to the specified print stream.
 void printStackTrace(PrintWriter s)
          Prints this WTSAXException and the stack trace of its most deeply nested embedded Throwable to the specified print writer.
 String toString()
          Returns a description of this WTSAXException.
 String toString(boolean nested)
          Returns a description of this WTException.
 
Methods inherited from class org.xml.sax.SAXException
getException
 
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

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

wte

private WTException wte
Constructor Detail

WTSAXException

public WTSAXException(String s)
Constructs a Windchill exception with a non-localizable detailed message.

Supported API: false

Parameters:
s -

WTSAXException

public WTSAXException(String rb,
                      String key,
                      Object[] params)
Constructs a new exception from a resource bundle, its key, and an array of objects for insertion into the keyed resource bundle's message.

Supported API: false

Parameters:
rb -
key -
params -

WTSAXException

public WTSAXException(Throwable t,
                      String s)
Constructs a WTSAXException with an embedded Throwable object and a localizable detailed message.

Supported API: false

Parameters:
t -
s -

WTSAXException

public WTSAXException(Throwable t,
                      String rb,
                      String key,
                      Object[] params)
Constructs a new exception with a nested exception from a resource bundle, its key, and an array of objects for insertion into the keyed resource bundle's message.

Supported API: false

Parameters:
t -
rb -
key -
params -
Method Detail

getLocalizedMessage

public String getLocalizedMessage()


Supported API: false

Returns:
String

getLocalizedMessage

public String getLocalizedMessage(Locale locale)
Obtain a message, localized to the specified locale.

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 WTSAXException and the stack trace of its most deeply nested embedded Throwable to the standard error stream.

Supported API: true


printStackTrace

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

Supported API: true


printStackTrace

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

Supported API: true


toString

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

Supported API: true


toString

public 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