Class LibraryException

All Implemented Interfaces:
Serializable

public class LibraryException extends RuntimeException
Exception thrown when there is an error processing a Library call.
See Also:
  • Constructor Details

    • LibraryException

      public LibraryException(String message, int errorCode, String objectName, String additionalInfo)
      Exception thrown when there is an error processing a Library call.
      Parameters:
      message - The detail message.
      errorCode - The PDF Library error code.
      objectName - The name of the object (i.e. a filename for a file) that caused the error.
      additionalInfo - A string containing additional information about the object.
  • Method Details

    • getErrorCode

      public int getErrorCode()
      Retrieve the internal PDF Library error code.
      Returns:
      The error code for this exception.
    • getObjectName

      public String getObjectName()
      Retrieve the name of the object that caused the exception.
      Returns:
      The name of the object.
    • getAdditionalInfo

      public String getAdditionalInfo()
      Retrieve additional information about the exception.
      Returns:
      A string containing additional information about the exception.