Class PrettyPrintException

  • All Implemented Interfaces:
    java.io.Serializable

    @API(type=NOT_EXTENDABLE,
         src=PUBLIC)
    public abstract class PrettyPrintException
    extends java.lang.Exception
    Exception thrown when an error occurs while pretty printing an XML document.
    Since:
    17.1
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected PrettyPrintException()
      Create a pretty printing exception.
      protected PrettyPrintException​(java.lang.String message)
      Creates an exception with the specified message.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract int getColumnNumber()  
      abstract int getLength()  
      abstract int getLineNumber()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PrettyPrintException

        protected PrettyPrintException()
        Create a pretty printing exception.
      • PrettyPrintException

        protected PrettyPrintException​(java.lang.String message)
        Creates an exception with the specified message.
        Parameters:
        message - The message of the exception.
    • Method Detail

      • getLineNumber

        public abstract int getLineNumber()
        Returns:
        The line number of the error. 1 based.
      • getColumnNumber

        public abstract int getColumnNumber()
        Returns:
        The column number of the error.
      • getLength

        public abstract int getLength()
        Returns:
        Returns the length of the range in error.