Package wt.util.xml
Class WTSAXException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.xml.sax.SAXException
wt.util.xml.WTSAXException
- All Implemented Interfaces:
Serializable,LocalizableMessage,Message
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
Supported API: true
Extendable: false
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetLocalizedMessage(boolean nested) Returns the localized message, optionally including nested exception.getLocalizedMessage(Locale locale) Obtain a message, localized to the specified locale.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 thisWTSAXExceptionand the stack trace of its most deeply nested embedded Throwable to the standard error stream.voidPrints thisWTSAXExceptionand the stack trace of its most deeply nested embedded Throwable to the specified print stream.voidPrints thisWTSAXExceptionand the stack trace of its most deeply nested embedded Throwable to the specified print writer.toString()Returns a description of thisWTSAXException.toString(boolean nested) Returns a description of thisWTException.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getStackTrace, getSuppressed, initCause, setStackTrace
-
Method Details
-
getLocalizedMessage
Obtain a message, localized to the specified locale.
Supported API: true- Specified by:
getLocalizedMessagein interfaceLocalizableMessage- Parameters:
locale-- 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 classSAXException
-
getNestedThrowable
Returns the embedded throwable object.
Supported API: true -
printStackTrace
public void printStackTrace()Prints thisWTSAXExceptionand the stack trace of its most deeply nested embedded Throwable to the standard error stream.
Supported API: true- Overrides:
printStackTracein classThrowable
-
printStackTrace
Prints thisWTSAXExceptionand the stack trace of its most deeply nested embedded Throwable to the specified print stream.
Supported API: true- Overrides:
printStackTracein classThrowable
-
printStackTrace
Prints thisWTSAXExceptionand 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 thisWTSAXException. The description includes the descriptions of the nested throwable objects that are embedded within thisWTSAXException.
Supported API: true- Overrides:
toStringin classSAXException
-
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
-