Package wt.util.xml

Class WTSAXException

All Implemented Interfaces:
Serializable, LocalizableMessage, Message

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:
  • Method Details

    • 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
      Overrides:
      getMessage in class SAXException
    • 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
      Overrides:
      printStackTrace in class Throwable
    • 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
      Overrides:
      printStackTrace in class Throwable
    • 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
      Overrides:
      printStackTrace in class Throwable
    • 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
      Overrides:
      toString in class SAXException
    • 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