Package org.apache.fop.layoutmgr
Class LayoutException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.fop.layoutmgr.LayoutException
- All Implemented Interfaces:
Serializable
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:
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionLayoutException
(String message) Constructs a new layout exception with the specified detail message.LayoutException
(String message, LayoutManager lm) Constructs a new layout exception with the specified detail message. -
Method Summary
Modifier and TypeMethodDescriptionReturns the layout manager that detected the problem.void
Sets the localized message for this exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
LayoutException
Constructs a new layout exception with the specified detail message.- Parameters:
message
- the detail message.
-
LayoutException
Constructs a new layout exception with the specified detail message.- Parameters:
message
- the detail messagelm
- the layout manager that throws the exception
-
-
Method Details
-
setLocalizedMessage
Sets the localized message for this exception.- Parameters:
msg
- the localized message
-
getLocalizedMessage
- Overrides:
getLocalizedMessage
in classThrowable
-
getLayoutManager
Returns the layout manager that detected the problem.- Returns:
- the layout manager (or null)
-