Package org.apache.fop.apps
Class FOPException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.xml.sax.SAXException
-
- org.apache.fop.apps.FOPException
-
- All Implemented Interfaces:
Serializable
@Deprecated(since="2021-03-01") public class FOPException extends SAXException
Deprecated.Avoid using this package provided OOTB and migrate code a newer version which you can deploy as part of your project.Exception thrown when FOP has a problem.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FOPException(Exception cause)
Deprecated.Constructs a new FOP exception with the specified cause.FOPException(String message)
Deprecated.Constructs a new FOP exception with the specified detail message.FOPException(String message, Exception cause)
Deprecated.Constructs a new exception with the specified detail message and cause.FOPException(String message, String systemId, int line, int column)
Deprecated.Constructs a new FOP exception with the specified detail message and location.FOPException(String message, Locator locator)
Deprecated.Constructs a new FOP exception with the specified detail message and location.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getLocalizedMessage()
Deprecated.String
getMessage()
Deprecated.Returns the detail message string of this FOP exception.boolean
isLocationSet()
Deprecated.Indicate whether a location was set.void
printStackTrace()
Deprecated.Prints this FOP exception and its backtrace to the standard error stream.void
printStackTrace(PrintStream stream)
Deprecated.Prints this FOP exception and its backtrace to the specified print stream.void
printStackTrace(PrintWriter writer)
Deprecated.Prints this FOP exception and its backtrace to the specified print writer.void
setLocalizedMessage(String msg)
Deprecated.Sets the localized message for this exception.void
setLocation(String systemId, int line, int column)
Deprecated.Set a location associated with the exception.void
setLocator(Locator locator)
Deprecated.Set a location associated with the exception.-
Methods inherited from class org.xml.sax.SAXException
getCause, getException, toString
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getStackTrace, getSuppressed, initCause, setStackTrace
-
-
-
-
Constructor Detail
-
FOPException
public FOPException(String message)
Deprecated.Constructs a new FOP exception with the specified detail message.- Parameters:
message
- the detail message.
-
FOPException
public FOPException(String message, String systemId, int line, int column)
Deprecated.Constructs a new FOP exception with the specified detail message and location.- Parameters:
message
- the detail messagesystemId
- the system id of the FO document which is associated with the exception may be null.line
- line number in the FO document which is associated with the exception.column
- clolumn number in the line which is associated with the exception.
-
FOPException
public FOPException(String message, Locator locator)
Deprecated.Constructs a new FOP exception with the specified detail message and location.- Parameters:
message
- the detail message.locator
- the locator holding the location.
-
FOPException
public FOPException(Exception cause)
Deprecated.Constructs a new FOP exception with the specified cause.- Parameters:
cause
- the cause.
-
-
Method Detail
-
setLocator
public void setLocator(Locator locator)
Deprecated.Set a location associated with the exception.- Parameters:
locator
- the locator holding the location.
-
setLocation
public void setLocation(String systemId, int line, int column)
Deprecated.Set a location associated with the exception.- Parameters:
systemId
- the system id of the FO document which is associated with the exception; may be null.line
- line number in the FO document which is associated with the exception.column
- column number in the line which is associated with the exception.
-
isLocationSet
public boolean isLocationSet()
Deprecated.Indicate whether a location was set.- Returns:
- whether a location was set
-
getMessage
public String getMessage()
Deprecated.Returns the detail message string of this FOP exception. If a location was set, the message is prepended with it in the formSystemId:LL:CC: &the message&
(the format used by most GNU tools)- Overrides:
getMessage
in classSAXException
- Returns:
- the detail message string of this FOP exception
-
printStackTrace
public void printStackTrace()
Deprecated.Prints this FOP exception and its backtrace to the standard error stream.- Overrides:
printStackTrace
in classThrowable
-
printStackTrace
public void printStackTrace(PrintStream stream)
Deprecated.Prints this FOP exception and its backtrace to the specified print stream.- Overrides:
printStackTrace
in classThrowable
- Parameters:
stream
- PrintStream to use for output
-
printStackTrace
public void printStackTrace(PrintWriter writer)
Deprecated.Prints this FOP exception and its backtrace to the specified print writer.- Overrides:
printStackTrace
in classThrowable
- Parameters:
writer
- PrintWriter to use for output
-
setLocalizedMessage
public void setLocalizedMessage(String msg)
Deprecated.Sets the localized message for this exception.- Parameters:
msg
- the localized message
-
getLocalizedMessage
public String getLocalizedMessage()
Deprecated.- Overrides:
getLocalizedMessage
in classThrowable
-
-