Class XMLException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.softwareag.entirex.xml.rt.XMLException
All Implemented Interfaces:
Serializable

public class XMLException extends Exception
Class XMLException is a checked exception for all sorts of problems
occurring in the XML/SOAP runtime component. Besides an exception text,
XMLException objects can hold an exception "kind" which describes the
subcomponent in which problems arose.

Exception class thrown by EntireX XML/SOAP Runtime classes.
Use toString() to retrieve the error message including the error class and error code.
Use getMessage() to retrieve the error message only.
Use getErrorClass() to retrieve the error class only.
Use getNumber() to retrieve the error code only.
See Also:
  • Field Details

    • XMLRUNTIME_CLASS

      public static final int XMLRUNTIME_CLASS
      Error class for EntireX XML/SOAP Runtime
      See Also:
  • Method Details

    • getErrorText

      public String getErrorText()
      Returns the error text part of the XML Runtime error.
      Returns:
      XML Runtime error text as string.
    • getErrorCode

      public int getErrorCode()
      Returns the error code part of the XML Runtime error.
      Returns:
      XML Runtime error code as int.
    • getErrorClass

      public int getErrorClass()
      Returns the error class part of the XML Runtime error.
      Returns:
      XML Runtime error class as int.
    • getMessage

      public String getMessage()
      Debugging method to write this exception text and kind onto stdout.
      Overrides:
      getMessage in class Throwable
      Returns:
      String The string representation of this exception.
    • toString

      public String toString()
      Returns the complete error information as string
      Format: Error-class Error-code Error-text Detail
      Overrides:
      toString in class Throwable
      Returns:
      The complete error information.