pdfOCR 1.0.3 API
iText.Pdfocr.OcrException Class Reference

Exception class for custom exceptions. More...

Inheritance diagram for iText.Pdfocr.OcrException:
iText.Pdfocr.Tesseract4.Tesseract4OcrException

Public Member Functions

  OcrException (String msg, Exception e)
  Creates a new OcrException. More...
 
  OcrException (String msg)
  Creates a new OcrException. More...
 
virtual iText.Pdfocr.OcrException  SetMessageParams (params String[] messageParams)
  Sets additional params for Exception message. More...
 

Static Public Attributes

const String  CANNOT_READ_INPUT_IMAGE = "Cannot read input image"
 
const String  CANNOT_RESOLVE_PROVIDED_FONTS = "Cannot resolve " + "any of provided fonts. Please check provided FontProvider."
 
const String  CANNOT_CREATE_PDF_DOCUMENT = "Cannot create " + "PDF document: {0}"
 

Properties

override String?  Message [get]
 

Detailed Description

Exception class for custom exceptions.

Constructor & Destructor Documentation

◆ OcrException() [1/2]

iText.Pdfocr.OcrException.OcrException ( String  msg,
Exception  e 
)
inline

Creates a new OcrException.

Parameters
msg the detail message.
e the cause (which is saved for later retrieval by System.Exception.InnerException() method).

◆ OcrException() [2/2]

iText.Pdfocr.OcrException.OcrException ( String  msg )
inline

Creates a new OcrException.

Parameters
msg the detail message.

Member Function Documentation

◆ SetMessageParams()

virtual iText.Pdfocr.OcrException iText.Pdfocr.OcrException.SetMessageParams ( params String[]  messageParams )
inlinevirtual

Sets additional params for Exception message.

Parameters
messageParams additional params.
Returns
object itself.

Property Documentation

◆ Message

override String? iText.Pdfocr.OcrException.Message
get