Package org.apache.fop.fo.pagination
Class PageProductionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.fop.fo.pagination.PageProductionException
- All Implemented Interfaces:
Serializable
Exception thrown by FOP if there is a problem while producing new pages.
- See Also:
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionPageProductionException
(String message) Creates a new PageProductionException.PageProductionException
(String message, Locator locator) Creates a new PageProductionException. -
Method Summary
Modifier and TypeMethodDescriptionReturns the locattion associated with the exception.void
Sets the localized message for this exception.void
setLocator
(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
-
Constructor Details
-
PageProductionException
Creates a new PageProductionException.- Parameters:
message
- the message
-
PageProductionException
Creates a new PageProductionException.- Parameters:
message
- the messagelocator
- the optional locator that points to the error in the source file
-
-
Method Details
-
setLocator
Set a location associated with the exception.- Parameters:
locator
- the locator holding the location.
-
getLocator
Returns the locattion associated with the exception.- Returns:
- the locator or null if the location information is not available
-
setLocalizedMessage
Sets the localized message for this exception.- Parameters:
msg
- the localized message
-
getLocalizedMessage
- Overrides:
getLocalizedMessage
in classThrowable
-