Class ResourceLimitExceededException

All Implemented Interfaces:
Serializable

public class ResourceLimitExceededException extends VeraPDFParserException
Thrown when parsing is aborted because a configured resource limit is exceeded, as opposed to the input being malformed. It is a subclass of VeraPDFParserException, so existing callers that catch the parser exception keep working unchanged; a caller that needs to tell a deliberate resource-limit abort (for example the caps set through SeekableInputStream.setMaxStreamSize or COSDocument.setMaxNumberOfObjects) apart from a genuine parse error can catch this type instead of matching on the message text.
Author:
veraPDF Consortium
See Also:
  • Constructor Details

    • ResourceLimitExceededException

      public ResourceLimitExceededException()
    • ResourceLimitExceededException

      public ResourceLimitExceededException(String message)
    • ResourceLimitExceededException

      public ResourceLimitExceededException(String message, Throwable cause)
    • ResourceLimitExceededException

      public ResourceLimitExceededException(Throwable cause)