Class PageProductionException

  • All Implemented Interfaces:
    java.io.Serializable

    public class PageProductionException
    extends java.lang.RuntimeException
    Exception thrown by FOP if there is a problem while producing new pages.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      PageProductionException​(java.lang.String message)
      Creates a new PageProductionException.
      PageProductionException​(java.lang.String message, org.xml.sax.Locator locator)
      Creates a new PageProductionException.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getLocalizedMessage()
      org.xml.sax.Locator getLocator()
      Returns the locattion associated with the exception.
      void setLocalizedMessage​(java.lang.String msg)
      Sets the localized message for this exception.
      void setLocator​(org.xml.sax.Locator locator)
      Set a location associated with the exception.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, 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
    • Field Detail

      • localizedMessage

        private java.lang.String localizedMessage
      • locator

        private transient org.xml.sax.Locator locator
    • Constructor Detail

      • PageProductionException

        public PageProductionException​(java.lang.String message)
        Creates a new PageProductionException.
        Parameters:
        message - the message
      • PageProductionException

        public PageProductionException​(java.lang.String message,
                                       org.xml.sax.Locator locator)
        Creates a new PageProductionException.
        Parameters:
        message - the message
        locator - the optional locator that points to the error in the source file
    • Method Detail

      • setLocator

        public void setLocator​(org.xml.sax.Locator locator)
        Set a location associated with the exception.
        Parameters:
        locator - the locator holding the location.
      • getLocator

        public org.xml.sax.Locator getLocator()
        Returns the locattion associated with the exception.
        Returns:
        the locator or null if the location information is not available
      • setLocalizedMessage

        public void setLocalizedMessage​(java.lang.String msg)
        Sets the localized message for this exception.
        Parameters:
        msg - the localized message
      • getLocalizedMessage

        public java.lang.String getLocalizedMessage()
        Overrides:
        getLocalizedMessage in class java.lang.Throwable