public class FOPException
extends org.xml.sax.SAXException
Constructor and Description |
---|
FOPException(java.lang.Exception cause)
Constructs a new FOP exception with the specified cause.
|
FOPException(java.lang.String message)
Constructs a new FOP exception with the specified detail message.
|
FOPException(java.lang.String message,
java.lang.Exception cause)
Constructs a new exception with the specified detail message and cause.
|
FOPException(java.lang.String message,
org.xml.sax.Locator locator)
Constructs a new FOP exception with the specified detail message and location.
|
FOPException(java.lang.String message,
java.lang.String systemId,
int line,
int column)
Constructs a new FOP exception with the specified detail message and location.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLocalizedMessage() |
java.lang.String |
getMessage()
Returns the detail message string of this FOP exception.
|
protected java.lang.Throwable |
getRootException()
Attempts to recast the exception as other Throwable types.
|
boolean |
isLocationSet()
Indicate whether a location was set.
|
void |
printStackTrace()
Prints this FOP exception and its backtrace to the standard error stream.
|
void |
printStackTrace(java.io.PrintStream stream)
Prints this FOP exception and its backtrace to the specified print stream.
|
void |
printStackTrace(java.io.PrintWriter writer)
Prints this FOP exception and its backtrace to the specified print writer.
|
void |
setLocalizedMessage(java.lang.String msg)
Sets the localized message for this exception.
|
void |
setLocation(java.lang.String systemId,
int line,
int column)
Set a location associated with the exception.
|
void |
setLocator(org.xml.sax.Locator locator)
Set a location associated with the exception.
|
public FOPException(java.lang.String message)
message
- the detail message.public FOPException(java.lang.String message, java.lang.String systemId, int line, int column)
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.public FOPException(java.lang.String message, org.xml.sax.Locator locator)
message
- the detail message.locator
- the locator holding the location.public FOPException(java.lang.Exception cause)
cause
- the cause.public FOPException(java.lang.String message, java.lang.Exception cause)
message
- the detail messagecause
- the causepublic void setLocator(org.xml.sax.Locator locator)
locator
- the locator holding the location.public void setLocation(java.lang.String systemId, int line, int column)
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.public boolean isLocationSet()
public java.lang.String getMessage()
SystemId:LL:CC: &the message&(the format used by most GNU tools)
getMessage
in class org.xml.sax.SAXException
protected java.lang.Throwable getRootException()
public void printStackTrace()
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintStream stream)
printStackTrace
in class java.lang.Throwable
stream
- PrintStream to use for outputpublic void printStackTrace(java.io.PrintWriter writer)
printStackTrace
in class java.lang.Throwable
writer
- PrintWriter to use for outputpublic void setLocalizedMessage(java.lang.String msg)
msg
- the localized messagepublic java.lang.String getLocalizedMessage()
getLocalizedMessage
in class java.lang.Throwable
Copyright 1999-2017 The Apache Software Foundation. All Rights Reserved.