Class LayoutException

All Implemented Interfaces:
Serializable

public class LayoutException extends RuntimeException
Exception thrown by FOP if an unrecoverable layout error occurs. An example: An area overflows a viewport that has overflow="error-if-overflow". TODO Discuss if this should become a checked exception.
See Also:
  • Constructor Details

    • LayoutException

      public LayoutException(String message)
      Constructs a new layout exception with the specified detail message.
      Parameters:
      message - the detail message.
    • LayoutException

      public LayoutException(String message, LayoutManager lm)
      Constructs a new layout exception with the specified detail message.
      Parameters:
      message - the detail message
      lm - the layout manager that throws the exception
  • Method Details

    • setLocalizedMessage

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

      public String getLocalizedMessage()
      Overrides:
      getLocalizedMessage in class Throwable
    • getLayoutManager

      public LayoutManager getLayoutManager()
      Returns the layout manager that detected the problem.
      Returns:
      the layout manager (or null)