public class OcrException extends RuntimeException
| Modifier and Type | Field and Description |
|---|---|
static String |
CANNOT_CREATE_PDF_DOCUMENT |
static String |
CANNOT_READ_INPUT_IMAGE |
static String |
CANNOT_RESOLVE_PROVIDED_FONTS |
| Constructor and Description |
|---|
OcrException(String msg)
Creates a new OcrException.
|
OcrException(String msg, Throwable e)
Creates a new OcrException.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getMessage() |
protected Object[] |
getMessageParams()
Gets additional params for Exception message.
|
OcrException |
setMessageParams(String... messageParams)
Sets additional params for Exception message.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic static final String CANNOT_READ_INPUT_IMAGE
public static final String CANNOT_RESOLVE_PROVIDED_FONTS
public static final String CANNOT_CREATE_PDF_DOCUMENT
public OcrException(String msg, Throwable e)
msg - the detail message.
e - the cause (which is saved for later retrieval by Throwable.getCause() method).
public OcrException(String msg)
msg - the detail message.
public String getMessage()
getMessage in class Throwable
protected Object[] getMessageParams()
public OcrException setMessageParams(String... messageParams)
messageParams - additional params.
Copyright © 1998–2020 iText Group NV. All rights reserved.