Class IronOcrDictionaryException
Represents errors that occur relating to IronOCR language files.
Namespace: IronOcr.Exceptions
Assembly: IronOcr.dll
Syntax
public class IronOcrDictionaryException : IronOcrProductException
A dictionary or language-pack problem during recognition surfaces as this exception, raised when a configured language or custom trained-data file cannot be located or loaded. Confirm the language name is correct, that the matching language pack is installed, and that any custom path points at a readable trained-data file before retrying. It extends IronOcrProductException, so a handler on that base type also catches it. The custom language how-to covers adding language files correctly.
Constructors
IronOcrDictionaryException()
Initializes a new instance of the IronOcrDictionaryException class.
Declaration
public IronOcrDictionaryException()
IronOcrDictionaryException(String)
Initializes a new instance of the IronOcrDictionaryException class with a specified error message.
Declaration
public IronOcrDictionaryException(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | message | The message that describes the error. |
IronOcrDictionaryException(String, Exception)
Initializes a new instance of the IronOcrDictionaryException class with a specified error message and a reference to the inner exception that is the cause of this exception.
Declaration
public IronOcrDictionaryException(string message, Exception innerException)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | message | The error message that explains the reason for the exception. |
| System.Exception | innerException | The exception that is the cause of the current exception, or a null reference (langword_csharp_Nothing in Visual Basic) if no inner exception is specified. |