Enum Configuration.ErrorPolicy
- All Implemented Interfaces:
Serializable
,Comparable<Configuration.ErrorPolicy>
,java.lang.constant.Constable
- Enclosing class:
Configuration
An enum containing error policies.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionWhether an exception should be thrown when the PDF's conformance was not validated even thoughConfiguration.setValidateConformance(Boolean)
was enabled.Whether exceptions occurring when trying to merge invalid documents (e.g.Whether an exception should be thrown when no legal full license key is set.Whether an exception should be thrown when resources could not be loaded.Whether an exception should be thrown when there are uncaught exceptions in the input document JavaScript, including syntax error.Whether an exception should be thrown when an event of levelConfiguration.LogLevel.WARN
is logged. -
Method Summary
Modifier and TypeMethodDescriptionstatic Configuration.ErrorPolicy
Returns the enum constant of this type with the specified name.static Configuration.ErrorPolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
LICENSE
Whether an exception should be thrown when no legal full license key is set. This allows to programmatically ensure that documents are not altered due to license issues.
-
MISSING_RESOURCE
Whether an exception should be thrown when resources could not be loaded.
-
UNCAUGHT_JAVASCRIPT_EXCEPTION
Whether an exception should be thrown when there are uncaught exceptions in the input document JavaScript, including syntax error.
-
CONFORMANCE_VALIDATION_UNAVAILABLE
Whether an exception should be thrown when the PDF's conformance was not validated even though
Configuration.setValidateConformance(Boolean)
was enabled. Now exceptions will be thrown if the validation module is not available or the conformance format is not fully supported for validation.Use this policy only if you exclusively convert documents where validation is supported and strictly required.
-
IGNORE_INVALID_MERGE_DOCUMENTS_EXCEPTION
Whether exceptions occurring when trying to merge invalid documents (e.g. encrypted documents for which no owner password or an invalid password was supplied) should be ignored.
Use this policy if the conversion should proceed even if one or more documents that should be merged are invalid. They will be omitted from the final PDF.
-
WARN_EVENT
Whether an exception should be thrown when an event of level
Configuration.LogLevel.WARN
is logged.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-