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:
java.io.Serializable
public class LayoutException extends java.lang.RuntimeExceptionException 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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLayoutException.LayoutExceptionFactoryException factory forLayoutException.
-
Constructor Summary
Constructors Constructor Description LayoutException(java.lang.String message)Constructs a new layout exception with the specified detail message.LayoutException(java.lang.String message, LayoutManager lm)Constructs a new layout exception with the specified detail message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LayoutManagergetLayoutManager()Returns the layout manager that detected the problem.java.lang.StringgetLocalizedMessage()voidsetLocalizedMessage(java.lang.String msg)Sets the localized message for this exception.
-
-
-
Constructor Detail
-
LayoutException
public LayoutException(java.lang.String message)
Constructs a new layout exception with the specified detail message.- Parameters:
message- the detail message.
-
LayoutException
public LayoutException(java.lang.String message, LayoutManager lm)Constructs a new layout exception with the specified detail message.- Parameters:
message- the detail messagelm- the layout manager that throws the exception
-
-
Method Detail
-
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:
getLocalizedMessagein classjava.lang.Throwable
-
getLayoutManager
public LayoutManager getLayoutManager()
Returns the layout manager that detected the problem.- Returns:
- the layout manager (or null)
-
-