public class PDFErrorHandling extends Object
Constructor and Description |
---|
PDFErrorHandling() |
Modifier and Type | Method and Description |
---|---|
static void |
addError(RenderError error)
Deprecated.
This method has been deprecated and now has no effect.
|
static void |
addError(Throwable t,
String prefixMsg)
Deprecated.
This method has been deprecated and now has no effect.
|
static void |
checkForErrors_UsePDFException(String errorMsg)
Deprecated.
This method has been deprecated and now has no effect.
|
static void |
checkForErrors_UsePrinterException(String errorMsg)
Deprecated.
This method has been deprecated and now has no effect.
|
static void |
clearErrors()
Deprecated.
This method has been deprecated and now has no effect.
|
static int |
getErrorHandling()
Deprecated.
This method has been deprecated and now has no effect, the method now always returns 0.
|
static Vector<RenderError> |
getErrors()
Deprecated.
This method has been deprecated and now has no effect, the method returns null always.
|
static boolean |
isThrowParseException()
Returns the value of the flag that controls whether or not an exception is thrown when there
is a problem parsing the contents of a page.
|
static boolean |
isThrowXFADynamicException()
Returns the value of the flag that controls whether or not an exception is thrown when trying to build a
document with an AcroForm that has Adobe XML Forms Architecture (XFA) data, and is a Dynamic Form.
|
static void |
setErrorHandling(int errorHandling)
Deprecated.
This method has been deprecated and now has no effect.
|
static void |
setThrowParseException(boolean throwParseException)
When the flag is set to true, the library will throw an exception if there is an error parsing the contents of a page.
|
static void |
setThrowXFADynamicException(boolean throwDynamicXFAException)
When the flag is set to true (the default), the library will throw an error if the document being built
has an AcroForm that has Adobe XML Forms Architecture (XFA) data, and is a Dynamic Form.
|
public static void clearErrors()
public static void addError(RenderError error)
error
- The error.public static void addError(Throwable t, String prefixMsg)
t
- The exception that was thrown.prefixMsg
- A message to prefix to error string.public static Vector<RenderError> getErrors()
public static void checkForErrors_UsePrinterException(String errorMsg)
errorMsg
- The error message to use in the PrinterException.public static void checkForErrors_UsePDFException(String errorMsg)
errorMsg
- The error message to use in the PDFException.public static int getErrorHandling()
public static void setErrorHandling(int errorHandling)
errorHandling
- The new value of the error handling flag.public static boolean isThrowXFADynamicException()
public static void setThrowXFADynamicException(boolean throwDynamicXFAException)
throwDynamicXFAException
- The new value of the flag.public static boolean isThrowParseException()
public static void setThrowParseException(boolean throwParseException)
throwParseException
- The new value of the flag.