Class IronOcrProductException
Represents errors that occur during IronOCR execution.
Inheritance
Namespace: IronOcr.Exceptions
Assembly: IronOcr.dll
Syntax
public class IronOcrProductException : Exception
Catch IronOcrProductException to handle any error IronOCR raises during normal execution in one place. It is the base type for the library's product exceptions, including IronOcrDictionaryException and IronOcrLicensingException, so a single catch on it covers those more specific causes too. It derives from System.Exception. When one is thrown, read the message and inner exception, then confirm your input, configuration, and license before retrying.
Constructors
IronOcrProductException()
Initializes a new instance of the IronOcrProductException class.
Declaration
public IronOcrProductException()
IronOcrProductException(String)
Initializes a new instance of the IronOcrProductException class with a specified error message.
Declaration
public IronOcrProductException(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | message | The message that describes the error. |
IronOcrProductException(String, Exception)
Initializes a new instance of the IronOcrProductException class with a specified error message and a reference to the inner exception that is the cause of this exception.
Declaration
public IronOcrProductException(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. |