Documentation
Table of contents

Enumeration ErrorCode

ErrorCode enumerates the specific error codes that the SDK may return, providing a systematic way to identify and handle errors encountered during its operation.

  • JavaScript
  • Android
  • Objective-C
  • Swift
  • C++
enum EnumErrorCode
{
    /** Operation completed successfully. */
    EC_OK = 0,
    // Common error codes range from -10000 to -19999
    /** An unspecified error occurred. */
    EC_UNKNOWN = -10000,
    /** The system does not have enough memory to perform the requested operation. */
    EC_NO_MEMORY = -10001,
    /** A null pointer was encountered where a valid pointer was required. */
    EC_NULL_POINTER = -10002,
    /** The provided license is not valid. */
    EC_LICENSE_INVALID = -10003,
    /** The provided license has expired. */
    EC_LICENSE_EXPIRED = -10004,
    /** The specified file could not be found. */
    EC_FILE_NOT_FOUND = -10005,
    /** The file type is not supported for processing. */
    EC_FILE_TYPE_NOT_SUPPORTED = -10006,
    /** The image's bits per pixel (BPP) is not supported. */
    EC_BPP_NOT_SUPPORTED = -10007,
    /** The specified index is out of the valid range. */
    EC_INDEX_INVALID = -10008,
    /** The specified custom region value is invalid or out of range. */
    EC_CUSTOM_REGION_INVALID = -10010,
    /** Failed to read the image due to an error in accessing or interpreting the image data. */
    EC_IMAGE_READ_FAILED = -10012,
    /** Failed to read a TIFF image, possibly due to corruption or unsupported format. */
    EC_TIFF_READ_FAILED = -10013,
    /** The provided DIB (Device-Independent Bitmaps) buffer is invalid or corrupted. */
    EC_DIB_BUFFER_INVALID = -10018,
    /** Failed to read a PDF image, possibly due to corruption or unsupported format. */
    EC_PDF_READ_FAILED = -10021,
    /** Required PDF processing DLL is missing. */
    EC_PDF_DLL_MISSING = -10022,
    /** The specified page number is invalid or out of bounds for the document. */
    EC_PAGE_NUMBER_INVALID = -10023,
    /** The specified custom size is invalid or not supported. */
    EC_CUSTOM_SIZE_INVALID = -10024,
    /** The operation timed out. */
    EC_TIMEOUT = -10026,
    /** Failed to parse JSON input. */
    EC_JSON_PARSE_FAILED = -10030,
    /** The JSON type is invalid for the expected context. */
    EC_JSON_TYPE_INVALID = -10031,
    /** The JSON key is invalid or unrecognized in the current context. */
    EC_JSON_KEY_INVALID = -10032,
    /** The JSON value is invalid for the specified key. */
    EC_JSON_VALUE_INVALID = -10033,
    /** The required "Name" key is missing in the JSON data. */
    EC_JSON_NAME_KEY_MISSING = -10034,
    /** The value of the "Name" key is duplicated and conflicts with existing data. */
    EC_JSON_NAME_VALUE_DUPLICATED = -10035,
    /** The template name is invalid or does not match any known template. */
    EC_TEMPLATE_NAME_INVALID = -10036,
    /** The reference made by the "Name" key is invalid or points to nonexistent data. */
    EC_JSON_NAME_REFERENCE_INVALID = -10037,
    /** The parameter value provided is invalid or out of the expected range. */
    EC_PARAMETER_VALUE_INVALID = -10038,
    /** The domain of the current site does not match the domain bound to the current product key. */
    EC_DOMAIN_NOT_MATCH = -10039,
    /** The reserved information does not match the reserved info bound to the current product key. */
    EC_RESERVED_INFO_NOT_MATCH = -10040,
    /** The license key does not match the license content. */
    EC_LICENSE_KEY_NOT_MATCH = -10043,
    /** Failed to request the license content from the server. */
    EC_REQUEST_FAILED = -10044,
    /** Failed to initialize the license. */
    EC_LICENSE_INIT_FAILED = -10045,
    /** Error setting the mode's argument, indicating invalid or incompatible arguments. */
    EC_SET_MODE_ARGUMENT_ERROR = -10051,
    /** The license content is invalid or corrupted. */
    EC_LICENSE_CONTENT_INVALID = -10052,
    /** The license key is invalid or does not match any known valid keys. */
    EC_LICENSE_KEY_INVALID = -10053,
    /** The license key has reached its maximum allowed usage and has no remaining quota. */
    EC_LICENSE_DEVICE_RUNS_OUT = -10054,
    /** Failed to retrieve the mode's argument, possibly due to invalid state or configuration. */
    EC_GET_MODE_ARGUMENT_ERROR = -10055,
    /** The Intermediate Result Types (IRT) license is invalid or not present. */
    EC_IRT_LICENSE_INVALID = -10056,
    /** Failed to save the file, possibly due to permissions, space, or an invalid path. */
    EC_FILE_SAVE_FAILED = -10058,
    /** The specified stage type is invalid or not supported in the current context. */
    EC_STAGE_TYPE_INVALID = -10059,
    /** The specified image orientation is invalid or not supported. */
    EC_IMAGE_ORIENTATION_INVALID = -10060,
    /** Failed to convert complex template to simplified settings, indicating a configuration or compatibility issue. */
    EC_CONVERT_COMPLEX_TEMPLATE_ERROR = -10061,
    /** Rejecting function call while capturing is in progress, to prevent conflicts or data corruption. */
    EC_CALL_REJECTED_WHEN_CAPTURING = -10062,
    /** The specified image source was not found, indicating a missing or inaccessible input source. */
    EC_NO_IMAGE_SOURCE = -10063,
    /** Failed to read the directory, possibly due to permissions, non-existence, or other access issues. */
    EC_READ_DIRECTORY_FAILED = -10064,
    /** A required module (e.g., DynamsoftBarcodeReader, DynamsoftLabelRecognizer) was not found. */
    EC_MODULE_NOT_FOUND = -10065,
    /** The operation does not support multi-page files; use FileFetcher for processing such files. */
    EC_MULTI_PAGES_NOT_SUPPORTED = -10066,
    /** Indicates an attempt to write to a file that already exists, with overwriting explicitly disabled. This error suggests the need for either enabling overwriting or ensuring unique file names to avoid conflicts. */
    EC_FILE_ALREADY_EXISTS = -10067,
    /** The specified file path does not exist and could not be created. This error could be due to insufficient permissions, a read-only filesystem, or other environmental constraints preventing file creation. */
    EC_CREATE_FILE_FAILED = -10068,
    /** The input ImageData object contains invalid parameters. This could be due to incorrect data types, out-of-range values, or improperly formatted data being passed to a function expecting ImageData. */
    EC_IMGAE_DATA_INVALID = -10069,
    // DLS license error codes range from -20000 to -29999
    /** Indicates no license is available or the license is not set. */
    EC_NO_LICENSE = -20000,
    /** The provided Handshake Code is invalid or does not match expected format. */
    EC_HANDSHAKE_CODE_INVALID = -20001,
    /** Encountered failures while attempting to read or write to the license buffer. */
    EC_LICENSE_BUFFER_FAILED = -20002,
    /** Synchronization with the license server failed, possibly due to network issues or server unavailability. */
    EC_LICENSE_SYNC_FAILED = -20003,
    /** The device attempting to use the license does not match the device specified in the license buffer. */
    EC_DEVICE_NOT_MATCH = -20004,
    /** Binding the device to the license failed, indicating possible issues with the license or device identifier. */
    EC_BIND_DEVICE_FAILED = -20005,
    /** The number of instances using the license exceeds the limit allowed by the license terms. */
    EC_INSTANCE_COUNT_OVER_LIMIT = -20008,
    /** InitLicenseFromDLS must be called before any SDK objects are created to ensure proper license initialization. */
    EC_LICENSE_INIT_SEQUENCE_FAILED = -20009,
    /** Indicates the license in use is a trial version with limited functionality or usage time. */
    EC_TRIAL_LICENSE = -20010,
    /** The system failed to reach the License Server, likely due to network connectivity issues. */
    EC_FAILED_TO_REACH_DLS = -20200,
    // DBR error codes range from -30000 to -39999
    /** The specified barcode format is invalid or unsupported. */
    EC_BARCODE_FORMAT_INVALID = -30009,
    /** The license for decoding QR Codes is invalid or not present. */
    EC_QR_LICENSE_INVALID = -30016,
    /** The license for decoding 1D barcodes is invalid or not present. */
    EC_1D_LICENSE_INVALID = -30017,
    /** The license for decoding PDF417 barcodes is invalid or not present. */
    EC_PDF417_LICENSE_INVALID = -30019,
    /** The license for decoding DataMatrix barcodes is invalid or not present. */
    EC_DATAMATRIX_LICENSE_INVALID = -30020,
    /** The specified custom module size for barcode generation is invalid or outside acceptable limits. */
    EC_CUSTOM_MODULESIZE_INVALID = -30025,
    /** The license for decoding Aztec barcodes is invalid or not present. */
    EC_AZTEC_LICENSE_INVALID = -30041,
    /** The license for decoding Patchcode barcodes is invalid or not present. */
    EC_PATCHCODE_LICENSE_INVALID = -30046,
    /** The license for decoding postal code formats is invalid or not present. */
    EC_POSTALCODE_LICENSE_INVALID = -30047,
    /** The license for Direct Part Marking (DPM) decoding is invalid or not present. */
    EC_DPM_LICENSE_INVALID = -30048,
    /** A frame decoding thread is already running, indicating a concurrent operation conflict. */
    EC_FRAME_DECODING_THREAD_EXISTS = -30049,
    /** Stopping the frame decoding thread failed, indicating potential issues with thread management. */
    EC_STOP_DECODING_THREAD_FAILED = -30050,
    /** The license for decoding MaxiCode barcodes is invalid or not present. */
    EC_MAXICODE_LICENSE_INVALID = -30057,
    /** The license for decoding GS1 DataBar barcodes is invalid or not present. */
    EC_GS1_DATABAR_LICENSE_INVALID = -30058,
    /** The license for decoding GS1 Composite codes is invalid or not present. */
    EC_GS1_COMPOSITE_LICENSE_INVALID = -30059,
    /** The license for decoding DotCode barcodes is invalid or not present. */
    EC_DOTCODE_LICENSE_INVALID = -30061,
    /** The license for decoding Pharmacode barcodes is invalid or not present. */
    EC_PHARMACODE_LICENSE_INVALID = -30062,
    // DLR error codes range from -40000 to -49999
    /** Indicates that the required character model file was not found, possibly due to incorrect paths or missing files. */
    EC_CHARACTER_MODEL_FILE_NOT_FOUND = -40100,
    // DDN error codes range from -50000 to -59999
    /** The specified quadrilateral is invalid, potentially due to incorrect points or an unprocessable shape. */
    EC_QUADRILATERAL_INVALID = -50057,
    // Panorama error codes range from -70000 to -79999
    /** The license for generating or processing panoramas is invalid or missing. */
    EC_PANORAMA_LICENSE_INVALID = -70060,
    // Reserved error codes range from -80000 to -89999
    // DCP error codes range from -90000 to -99999
    /** The specified resource path does not exist, indicating a missing directory or incorrect path specification. */
    EC_RESOURCE_PATH_NOT_EXIST = -90001,
    /** Failed to load the specified resource, which might be due to missing files, access rights, or other issues preventing loading. */
    EC_RESOURCE_LOAD_FAILED = -90002,
    /** The code specification required for processing was not found, indicating a missing or incorrect specification. */
    EC_CODE_SPECIFICATION_NOT_FOUND = -90003,
    /** The full code string provided is empty, indicating no data was provided for processing. */
    EC_FULL_CODE_EMPTY = -90004,
    /** Preprocessing the full code string failed, possibly due to invalid format, corruption, or unsupported features. */
    EC_FULL_CODE_PREPROCESS_FAILED = -90005,
    /** The license required for parsing South Africa Driver License data is invalid or not present. */
    EC_ZA_DL_LICENSE_INVALID = -90006,
    /** The license required for parsing North America DL/ID (AAMVA) data is invalid or not present. */
    EC_AAMVA_DL_ID_LICENSE_INVALID = -90007,
    /** The license required for parsing Aadhaar data is invalid or not present. */
    EC_AADHAAR_LICENSE_INVALID = -90008,
    /** The license required for parsing Machine Readable Travel Documents (MRTD) is invalid or not present. */
    EC_MRTD_LICENSE_INVALID = -90009,
    /** The license required for parsing Vehicle Identification Number (VIN) data is invalid or not present. */
    EC_VIN_LICENSE_INVALID = -90010,
    /** The license required for parsing customized code types is invalid or not present. */
    EC_CUSTOMIZED_CODE_TYPE_LICENSE_INVALID = -90011
}
@Retention(RetentionPolicy.CLASS)
public @interface EnumErrorCode
{
   /** Successful. */
   public static final int EC_OK = 0;
   /** -10000~-19999: Common error code. */
   /** Unknown error. */
   public static final int EC_UNKNOWN = -10000,
   /**Not enough memory to perform the operation. */
   public static final int EC_NO_MEMORY = -10001,
   /** Null pointer */
   public static final int EC_NULL_POINTER = -10002,
   /** License invalid. */
   public static final int EC_LICENSE_INVALID = -10003,
   /** License expired. */
   public static final int EC_LICENSE_EXPIRED = -10004,
   /** File not found. */
   public static final int EC_FILE_NOT_FOUND = -10005,
   /** The file type is not supported. */
   public static final int EC_FILE_TYPE_NOT_SUPPORTED = -10006,
   /** The BPP (Bits Per Pixel) is not supported. */
   public static final int EC_BPP_NOT_SUPPORTED = -10007,
   /** The index is invalid. */
   public static final int EC_INDEX_INVALID = -10008,
   /** The input region value parameter is invalid. */
   public static final int EC_CUSTOM_REGION_INVALID = -10010,
   /** Failed to read the image. */
   public static final int EC_IMAGE_READ_FAILED = -10012,
   /** Failed to read the TIFF image. */
   public static final int EC_TIFF_READ_FAILED = -10013,
   /** The DIB (Device-Independent Bitmaps) buffer is invalid. */
   public static final int EC_DIB_BUFFER_INVALID = -10018,
   /** Failed to read the PDF image. */
   public static final int EC_PDF_READ_FAILED = -10021,
   /** The PDF DLL is missing. */
   public static final int EC_PDF_DLL_MISSING = -10022,
   /** The page number is invalid. */
   public static final int EC_PAGE_NUMBER_INVALID = -10023,
   /** The custom size is invalid. */
   public static final int EC_CUSTOM_SIZE_INVALID = -10024,
   /** timeout. */
   public static final int EC_TIMEOUT = -10026,
   /** Json parse failed. */
   public static final int EC_JSON_PARSE_FAILED = -10030,
   /** Json type invalid. */
   public static final int EC_JSON_TYPE_INVALID = -10031,
   /** Json key invalid. */
   public static final int EC_JSON_KEY_INVALID = -10032,
   /** Json value invalid. */
   public static final int EC_JSON_VALUE_INVALID = -10033,
   /** Json name key missing. */
   public static final int EC_JSON_NAME_KEY_MISSING = -10034,
   /** The value of the key "Name" is duplicated. */
   public static final int EC_JSON_NAME_VALUE_DUPLICATED = -10035,
   /** Template name invalid. */
   public static final int EC_TEMPLATE_NAME_INVALID = -10036,
   /** The name reference is invalid. */
   public static final int EC_JSON_NAME_REFERENCE_INVALID = -10037,
   /** Parameter value invalid. */
   public static final int EC_PARAMETER_VALUE_INVALID = -10038,
   /** The domain of your current site does not match the domain bound in the current product key. */
   public static final int EC_DOMAIN_NOT_MATCH = -10039,
   /** The reserved info does not match the reserved info bound in the current product key. */
   public static final int EC_RESERVED_INFO_NOT_MATCH = -10040,
   /** The license key does not match the license content. */
   public static final int EC_LICENSE_KEY_NOT_MATCH = -10043,
   /** Failed to request the license content. */
   public static final int EC_REQUEST_FAILED = -10044,
   /** Failed to init the license. */
   public static final int EC_LICENSE_INIT_FAILED = -10045,
   /** Failed to set mode's argument. */
   public static final int EC_SET_MODE_ARGUMENT_ERROR = -10051,
   /** The license content is invalid. */
   public static final int EC_LICENSE_CONTENT_INVALID = -10052,
   /** The license key is invalid. */
   public static final int EC_LICENSE_KEY_INVALID = -10053,
   /** The license key has no remaining quota. */
   public static final int EC_LICENSE_DEVICE_RUNS_OUT = -10054,
   /** Failed to get mode's argument. */
   public static final int EC_GET_MODE_ARGUMENT_ERROR = -10055,
   /** The Intermediate Result Types license is invalid. */
   public static final int EC_IRT_LICENSE_INVALID = -10056,
   /** Failed to save file. */
   public static final int EC_FILE_SAVE_FAILED = -10058,
   /** The stage type is invalid. */
   public static final int EC_STAGE_TYPE_INVALID = -10059,
   /** The image orientation is invalid. */
   public static final int EC_IMAGE_ORIENTATION_INVALID = -10060,
   /** Complex tempalte can't be converted to simplified settings. */
   public static final int EC_CONVERT_COMPLEX_TEMPLATE_ERROR = -10061,
   /** Reject function call while capturing in progress.*/
   public static final int EC_CALL_REJECTED_WHEN_CAPTURING = -10062,
   /**The input image source was not found.*/
   public static final int EC_NO_IMAGE_SOURCE = -10063,
   /**Failed to read directory.*/
   public static final int EC_READ_DIRECTORY_FAILED = -10064,
   /**[Name] Module not found.*/
   /**Name : */
   /**DynamsoftBarcodeReader*/
   /**DynamsoftLabelRecognizer*/
   /**DynamsoftDocumentNormalizer*/
   public static final int EC_MODULE_NOT_FOUND = -10065,
   /**The file already exists but overwriting is disabled.*/
   public static final int EC_FILE_ALREADY_EXISTS = -10067,
   /**The file path does not exist but cannot be created, or cannot be created for any other reason.*/
   public static final int EC_CREATE_FILE_FAILED = -10068,
   /**The input ImageData object contains invalid parameter(s).*/
   public static final int EC_IMGAE_DATA_INVALID = -10069,
   /**The size of the input image do not meet the requirements.*/
   public static final int EC_IMAGE_SIZE_NOT_MATCH = -10070,
   /**The pixel format of the input image do not meet the requirements.*/
   public static final int EC_IMAGE_PIXEL_FORMAT_NOT_MATCH = -10071,
   /**The section level result is irreplaceable.*/
   public static final int EC_SECTION_LEVEL_RESULT_IRREPLACEABLE = -10072,
   /** -20000~-29999: DLS license error code. */
   /** No license. */
   public static final int EC_NO_LICENSE = -20000,
   /** The Handshake Code is invalid. */
   public static final int EC_HANDSHAKE_CODE_INVALID = -20001,
   /** Failed to read or write license buffer. */
   public static final int EC_LICENSE_BUFFER_FAILED = -20002,
   /** Failed to synchronize license info with license server. */
   public static final int EC_LICENSE_SYNC_FAILED = -20003,
   /** Device dose not match with buffer. */
   public static final int EC_DEVICE_NOT_MATCH = -20004,
   /** Failed to bind device. */
   public static final int EC_BIND_DEVICE_FAILED = -20005,
   /** Instance count is over limit. */
   public static final int EC_INSTANCE_COUNT_OVER_LIMIT = -20008,
   /** Trial License */
   public static final int EC_TRIAL_LICENSE = -20010,
   /** Failed to reach License Server. */
   public static final int EC_FAILED_TO_REACH_DLS = -20200,
   /** -30000~-39999: DBR error code. */
   /** The barcode format is invalid. */
   public static final int EC_BARCODE_FORMAT_INVALID = -30009,
   /** The QR Code license is invalid. */
   public static final int EC_QR_LICENSE_INVALID = -30016,
   /** The 1D Barcode license is invalid. */
   public static final int EC_1D_LICENSE_INVALID = -30017,
   /** The PDF417 license is invalid. */
   public static final int EC_PDF417_LICENSE_INVALID = -30019,
   /** The DATAMATRIX license is invalid. */
   public static final int EC_DATAMATRIX_LICENSE_INVALID = -30020,
   /** The custom module size is invalid. */
   public static final int EC_CUSTOM_MODULESIZE_INVALID = -30025,
   /** The AZTEC license is invalid. */
   public static final int EC_AZTpublic static final int EC_LICENSE_INVALID = -30041,
   /** The Patchcode license is invalid. */
   public static final int EC_PATCHCODE_LICENSE_INVALID = -30046,
   /** The Postal code license is invalid. */
   public static final int EC_POSTALCODE_LICENSE_INVALID = -30047,
   /** The DPM license is invalid. */
   public static final int EC_DPM_LICENSE_INVALID = -30048,
   /** The frame decoding thread already exists. */
   public static final int EC_FRAME_DECODING_THREAD_EXISTS = -30049,
   /** Failed to stop the frame decoding thread. */
   public static final int EC_STOP_DECODING_THREAD_FAILED = -30050,
   /** The Maxicode license is invalid. */
   public static final int EC_MAXICODE_LICENSE_INVALID = -30057,
   /** The GS1 Databar license is invalid. */
   public static final int EC_GS1_DATABAR_LICENSE_INVALID = -30058,
   /** The GS1 Composite code license is invalid. */
   public static final int EC_GS1_COMPOSITE_LICENSE_INVALID = -30059,
   /** The DotCode license is invalid. */
   public static final int EC_DOTCODE_LICENSE_INVALID = -30061,
   /** The Pharmacode license is invalid. */
   public static final int EC_PHARMACODE_LICENSE_INVALID = -30062,
   /** -40000~-49999: DLR error code */
   /** Character Model file is not found. */
   public static final int EC_CHARACTER_MODEL_FILE_NOT_FOUND = -40100,
   /**There is a conflict in the layout of TextLineGroup. */
   public static final int EC_TEXT_LINE_GROUP_LAYOUT_CONFLICT = -40101,
   /**There is a conflict in the regex of TextLineGroup. */
   public static final int EC_TEXT_LINE_GROUP_REGEX_CONFLICT = -40102,
   /** -50000~-59999: DDN error code. */
   /**No content has been detected. */
   public static final int EC_CONTENT_NOT_FOUND = -50056,
   /*The quardrilateral is invalid. */
   public static final int EC_QUADRILATERAL_INVALID = -50057,
   /** -60000~-69999: DCE error code. */
   /**-60000~-69999: DCE error code*/
   /** The camera module is not exist. */
   public static final int EC_CAMERA_MODULE_NOT_EXIST = -60003;
   /** The camera id does not exist. */
   public static final int EC_CAMERA_ID_NOT_EXIST = -60006;
   /** The sensor does not exist. */
   public static final int EC_NO_SENSOR = -60045;
   /**-70000~-79999: Panorama error code. */
   /**The panorama license is invalid. */
   public static final int EC_PANORAMA_LICENSE_INVALID = -70060,
   /** -80000~-89999: Reserved error code. */
   /**-90000~-99999: DCP error code. */
   /** The resource path is not exist. */
   public static final int EC_RESOURCE_PATH_NOT_EXIST = -90001,
   /** Failed to load resource. */
   public static final int EC_RESOURCE_LOAD_FAILED = -90002,
   /** The code specification is not found. */
   public static final int EC_CODE_SPECIFICATION_NOT_FOUND = -90003,
   /** The full code string is empty. */
   public static final int EC_FULL_CODE_EMPTY = -90004,
   /** Failed to preprocess the full code string */
   public static final int EC_FULL_CODE_PREPROCESS_FAILED = -90005,
   /** The license for parsing South Africa Driver License is invalid. */
   public static final int EC_ZA_DL_LICENSE_INVALID = -90006,
   /** The license for parsing North America DL/ID is invalid. */
   public static final int EC_AAMVA_DL_ID_LICENSE_INVALID = -90007,
   /** The license for parsing Aadhaar is invalid. */
   public static final int EC_AADHAAR_LICENSE_INVALID = -90008,
   /** The license for parsing Machine Readable Travel Documents is invalid. */
   public static final int EC_MRTD_LICENSE_INVALID = -90009,
   /** The license for parsing Vehicle Identification Number is invalid. */
   public static final int EC_VIN_LICENSE_INVALID = -90010,
   /** The license for parsing customized code type is invalid. */
   public static final int EC_CUSTOMIZED_CODE_TYPE_LICENSE_INVALID = -90011,
} ErrorCode;
typedef NS_ERROR_ENUM(DSErrorDomain, DSErrorCode) {
   /**Successful. */
   DSErrorCodeOK                               = 0,
   /**Unknown error. */
   DSErrorCodeUnknown                          = -10000,
   /**Not enough memory to perform the operation. */
   DSErrorCodeNoMemory                         = -10001,
   /**Null pointer */
   DSErrorCodeNullPointer                      = -10002,
   /**License invalid*/
   DSErrorCodeLicenseInvalid                   = -10003,
   /**License expired*/
   DSErrorCodeLicenseExpired                   = -10004,
   /**File not found*/
   DSErrorCodeFileNotFound                     = -10005,
   /**The file type is not supported. */
   DSErrorCodeFiletypeNotSupported             = -10006,
   /**The BPP (Bits Per Pixel) is not supported. */
   DSErrorCodeBPPNotSupported                  = -10007,
   /**Failed to read the image. */
   DSErrorCodeImageReadFailed                  = -10012,
   /**Failed to read the TIFF image. */
   DSErrorCodeTiffReadFailed                   = -10013,
   /**The DIB (Device-Independent Bitmaps) buffer is invalid. */
   DSErrorCodeDIBBufferInvalid                 = -10018,
   /**Failed to read the PDF image. */
   DSErrorCodePdfReadFailed                    = -10021,
   /**The PDF DLL is missing. */
   DSErrorCodePdfDllMissing                    = -10022,
   /**The page number is invalid. */
   DSErrorCodePageNumberInvalid                = -10023,
   /**The custom size is invalid. */
   DSErrorCodeCustomSizeInvalid                = -10024,
   /** timeout. */
   DSErrorCodeTimeout                          = -10026,
   /**Json parse failed*/
   DSErrorCodeJsonParseFailed                  = -10030,
   /**Json type invalid*/
   DSErrorCodeJsonTypeInvalid                  = -10031,
   /**Json key invalid*/
   DSErrorCodeJsonKeyInvalid                   = -10032,
   /**Json value invalid*/
   DSErrorCodeJsonValueInvalid                 = -10033,
   /**Json name key missing*/
   DSErrorCodeJsonNameKeyMissing               = -10034,
   /**The value of the key "Name" is duplicated.*/
   DSErrorCodeJsonNameValueDuplicated          = -10035,
   /**Template name invalid*/
   DSErrorCodeTemplateNameInvalid              = -10036,
   /**The name reference is invalid.*/
   DSErrorCodeJsonNameReferenceInvalid         = -10037,
   /**Parameter value invalid*/
   DSErrorCodeParameterValueInvalid            = -10038,
   /**The domain of your current site does not match the domain bound in the current product key.*/
   DSErrorCodeDomainNotMatch                   = -10039,
   /**The reserved info does not match the reserved info bound in the current product key.*/
   DSErrorCodeReservedInfoNotMatch             = -10040,
   /**The license key does not match the license content.*/
   DSErrorCodeLicenseKeyNotMatch               = -10043,
   /**Failed to request the license content.*/
   DSErrorCodeRequestFailed                    = -10044,
   /**Failed to init the license.*/
   DSErrorCodeLicenseInitFailed                = -10045,
   /**Failed to set mode's argument.*/
   DSErrorCodeSetModeArgumentError             = -10051,
   /**The license content is invalid.*/
   DSErrorCodeLicenseContentInvalid            = -10052,
   /**The license key is invalid.*/
   DSErrorCodeLicenseKeyInvalid                = -10053,
   /**The license key has no remaining quota.*/
   DSErrorCodeLicenseDeviceRunsOut             = -10054,
   /**Failed to get mode's argument.*/
   DSErrorCodeGetModeArgumentError             = -10055,
   /**The Intermediate Result Types license is invalid.*/
   DSErrorCodeIrtLicenseInvalid                = -10056,
   /**Failed to save file.*/
   DSErrorCodeFileSaveFailed                   = -10058,
   /**The stage type is invalid.*/
   DSErrorCodeStageTypeInvalid                 = -10059,
   /**The image orientation is invalid.*/
   DSErrorCodeImageOrientationInvalid          = -10060,
   /**Failed to convert complex tempalte to simplified settings.*/
   DSErrorCodeConvertComplexTemplateError      = -10061,
   /**Reject function call while capturing in progress.*/
   DSErrorCodeCallRejectedWhenCapturing        = -10062,
   /**The input image source was not found.*/
   DSErrorCodeNoImageSource                    = -10063,
   /**Failed to read directory.*/
   DSErrorCodeReadDirectoryFailed              = -10064,
   /**[Name] Module not found.*/
   /**Name : */
   /**DynamsoftBarcodeReader*/
   /**DynamsoftLabelRecognizer*/
   /**DynamsoftDocumentNormalizer*/
   DSErrorCodeModuleNotFound                   = -10065,
   /**The file already exists but overwriting is disabled.*/
   DSErrorCodeFileAlreadyExists                = -10067,
   /**The file path does not exist but cannot be created, or cannot be created for any other reason.*/
   DSErrorCodeCreateFileFailed                 = -10068,
   /**The input ImageData object contains invalid parameter(s).*/
   DSErrorCodeImageDataInvalid                 = -10069,
   /**The size of the input image does not meet the requirements.*/
   DSErrorImageSizeNotMatch                    = -10070,
   /**The pixel format of the input image does not meet the requirements.*/
   DSErrorImagePixelFormatNotMatch             = -10071,
   /**The section level result is irreplaceable.*/
   DSErrorSectionLevelResultIrreplaceable      = -10072,
   /**No license.*/
   DSErrorCodeNoLicense                        = -20000,
   /**The handshake code is invalid. */
   DSErrorCodeHandshakeCodeInvalid             = -20001,
   /**Failed to read or write license cache. */
   DSErrorCodeLicenseBufferFailed              = -20002,
   /**Falied to synchronize license info wirh license tracking server. */
   DSErrorCodeLicenseSyncFailed                = -20003,
   /**Device does not match with license buffer. */
   DSErrorCodeDeviceNotMatch                   = -20004,
   /**Falied to bind device. */
   DSErrorCodeBindDeviceFailed                 = -20005,
   /**Install.*/
   DSErrorCodeInstanceCountOverLimit           = -20008,
   /**Trial License*/
   DSErrorCodeTrialLicense                     = -20010,
   /**The license is not valid for current version*/
   DSErrorCodeLicenseVersionNotMatch           = -20011,
   /**Failed to reach License Tracking Server.*/
   DSErrorCodeFailedToReachDLS                 = -20200
   /** -30000~-39999: DBR error code. */
   /** The barcode format is invalid. */
   DSErrorCodeBarcodeFormatInvalid             = -30009,
   /** The QR Code license is invalid. */
   DSErrorCodeQRLicenseInvalid                 = -30016,
   /** The 1D Barcode license is invalid. */
   DSErrorCode1DLicenseInvalid                 = -30017,
   /** The PDF417 license is invalid. */
   DSErrorCodePDF417LicenseInvalid             = -30019,
   /** The DATAMATRIX license is invalid. */
   DSErrorCodeDATAMATRIXLicenseInvalid         = -30020,
   /** The custom module size is invalid. */
   DSErrorCodeCustomModuleSizeInvalid          = -30025,
   /** The AZTEC license is invalid. */
   DSErrorCodeAztecLicenseInvalid              = -30041,
   /** The Patchcode license is invalid. */
   DSErrorCodePatchCodeLicenseInvalid          = -30046,
   /** The Postal code license is invalid. */
   DSErrorCodePostalCodeLicenseInvalid         = -30047,
   /** The DPM license is invalid. */
   DSErrorCodeDPMLicenseInvalid                = -30048,
   /** The frame decoding thread already exists. */
   DSErrorCodeFrameDecodingThreadExists        = -30049,
   /** Failed to stop the frame decoding thread. */
   DSErrorCodeStopDecodingThreadFailed         = -30050,
   /** The Maxicode license is invalid. */
   DSErrorCodeMaxiCodeLicenseInvalid           = -30057,
   /** The GS1 Databar license is invalid. */
   DSErrorCodeGS1DatabarLicenseInvalid         = -30058,
   /** The GS1 Composite code license is invalid. */
   DSErrorCodeGS1CompositeLicenseInvalid       = -30059,
   /** The DotCode license is invalid. */
   DSErrorCodeDotCodeLicenseInvalid            = -30061,
   /** The Pharmacode license is invalid. */
   DSErrorCodePharmaCodeLicenseInvalid         = -30062,
   /** -40000~-49999: DLR error code */
   /** Character Model file is not found. */
   DSErrorCodeCharacterModelFileNotFound       = -40100,
   /** There is a conflict in the layout of TextLineGroup. */
   DSErrorTextLineGroupLayoutConflict          = -40101,
   /** There is a conflict in the regex of TextLineGroup. */
   DSErrorTextLineGroupRegexConflict           = -40102,
   /** -50000~-59999: DDN error code. */
   /**No content has been detected. */
   DSErrorCodeContentNotFound                  = -50056,
   /*The quardrilateral is invalid. */
   DSErrorCodeQuardrilateralInvalid            = -50057,
   /** -60000~-69999: DCE error code. */
   DSErrorCodeCameraModelNotExist              = -60003,
   DSErrorCodeCameraIDNotExist                 = -60006,
   DSErrorCodeNoSensor                         = -60045,
   /**-70000~-79999: Panorama error code. */
   /**The panorama license is invalid. */
   DSErrorCodePanoramaLicenseInvalid           = -70060,
   /** -80000~-89999: Reserved error code. */
   /**-90000~-99999: DCP error code. */
   /** The resource path is not exist. */
   DSErrorCodeResourcePathNotExist             = -90001,
   /** Failed to load resource. */
   DSErrorCodeResourceLoadFailed               = -90002,
   /** The code specification is not found. */
   DSErrorCodeCodeSpecificationNotFound        = -90003,
   /** The full code string is empty. */
   DSErrorCodeFullCodeEmpty                    = -90004,
   /** Failed to preprocess the full code string */
   DSErrorCodeFullCodePreprocessFailed         = -90005,
   /** The license for parsing South Africa Driver License is invalid. */
   DSErrorCodeZADLLicenseInvalid               = -90006,
   /** The license for parsing North America DL/ID is invalid. */
   DSErrorCodeAAMVADLIDLicenseInvalid          = -90007,
   /** The license for parsing Aadhaar is invalid. */
   DSErrorCodeAADHAARLicenseInvalid            = -90008,
   /** The license for parsing Machine Readable Travel Documents is invalid. */
   DSErrorCodeMRTDLicenseInvalid               = -90009,
   /** The license for parsing Vehicle Identification Number is invalid. */
   DSErrorCodeVINLicenseInvalid                = -90010,
   /** The license for parsing customized code type is invalid. */
   DSErrorCodeCustomizedCodeTypeLicenseInvalid = -90011,
};
public enum ErrorCode : Int
{
   /**Successful. */
   oK                               = 0
   /**Unknown error. */
   unknown                          = -10000
   /**Not enough memory to perform the operation. */
   noMemory                         = -10001
   /**Null pointer */
   nullPointer                      = -10002
   /**License invalid*/
   licenseInvalid                   = -10003
   /**License expired*/
   licenseExpired                   = -10004
   /**File not found*/
   fileNotFound                     = -10005
   /**The file type is not supported. */
   filetypeNotSupported             = -10006
   /**The BPP (Bits Per Pixel) is not supported. */
   bppNotSupported                  = -10007
   /**Failed to read the image. */
   imageReadFailed                  = -10012
   /**Failed to read the TIFF image. */
   tiffReadFailed                   = -10013
   /**The DIB (Device-Independent Bitmaps) buffer is invalid. */
   dibBufferInvalid                     = -10018,
   /**Failed to read the PDF image. */
   pdfReadFailed                    = -10021
   /**The PDF DLL is missing. */
   pdfDllMissing                    = -10022
   /**The page number is invalid. */
   pageNumberInvalid                = -10023
   /**The custom size is invalid. */
   customSizeInvalid                = -10024
   /** timeout. */
   timeout                          = -10026
   /**Json parse failed*/
   jsonParseFailed                  = -10030
   /**Json type invalid*/
   jsonTypeInvalid                  = -10031
   /**Json key invalid*/
   jsonKeyInvalid                   = -10032
   /**Json value invalid*/
   jsonValueInvalid                 = -10033
   /**Json name key missing*/
   jsonNameKeyMissing               = -10034
   /**The value of the key "Name" is duplicated.*/
   jsonNameValueDuplicated          = -10035
   /**Template name invalid*/
   templateNameInvalid              = -10036
   /**The name reference is invalid.*/
   jsonNameReferenceInvalid         = -10037
   /**Parameter value invalid*/
   parameterValueInvalid            = -10038
   /**The domain of your current site does not match the domain bound in the current product key.*/
   domainNotMatch                   = -10039
   /**The reserved info does not match the reserved info bound in the current product key.*/
   reservedInfoNotMatch             = -10040
   /**The license key does not match the license content.*/
   licenseKeyNotMatch               = -10043
   /**Failed to request the license content.*/
   requestFailed                    = -10044
   /**Failed to init the license.*/
   licenseInitFailed                = -10045
   /**Failed to set mode's argument.*/
   setModeArgumentError             = -10051
   /**The license content is invalid.*/
   licenseContentInvalid            = -10052
   /**The license key is invalid.*/
   licenseKeyInvalid                = -10053
   /**The license key has no remaining quota.*/
   licenseDeviceRunsOut             = -10054
   /**Failed to get mode's argument.*/
   getModeArgumentError             = -10055
   /**The Intermediate Result Types license is invalid.*/
   irtLicenseInvalid                = -10056
   /**Failed to save file.*/
   fileSaveFailed                   = -10058
   /**The stage type is invalid.*/
   stageTypeInvalid                 = -10059
   /**The image orientation is invalid.*/
   imageOrientationInvalid          = -10060
   /**Failed to convert complex tempalte to simplified settings.*/
   convertComplexTemplateError      = -10061
   /**Reject function call while capturing in progress.*/
   callRejectedWhenCapturing        = -10062
   /**The input image source was not found.*/
   noImageSource                    = -10063
   /**Failed to read directory.*/
   readDirectoryFailed              = -10064
   /**[Name] Module not found.*/
   /**Name : */
   /**DynamsoftBarcodeReader*/
   /**DynamsoftLabelRecognizer*/
   /**DynamsoftDocumentNormalizer*/
   moduleNotFound                   = -10065
   /**The file already exists but overwriting is disabled.*/
   fileAlreadyExists                = -10067
   /**The file path does not exist but cannot be created, or cannot be created for any other reason.*/
   createFileFailed                 = -10068
   /**The input ImageData object contains invalid parameter(s).*/
   imageDataInvalid                 = -10069
   /**The size of the input image does not meet the requirements.*/
   imageSizeNotMatch                = -10070
   /**The pixel format of the input image does not meet the requirements.*/
   imagePixelFormatNotMatch         = -10071
   /**The section level result is irreplaceable.*/
   sectionLevelResultIrreplaceable  = -10072
   /**No license.*/
   noLicense                        = -20000
   /**The handshake code is invalid. */
   handshakeCodeInvalid             = -20001
   /**Failed to read or write license cache. */
   licenseBufferFailed              = -20002
   /**Falied to synchronize license info wirh license tracking server. */
   licenseSyncFailed                = -20003
   /**Device does not match with license buffer. */
   deviceNotMatch                   = -20004
   /**Falied to bind device. */
   bindDeviceFailed                 = -20005
   /**Install.*/
   instanceCountOverLimit           = -20008
   /**Trial License*/
   trialLicense                     = -20010
   /**The license is not valid for current version*/
   licenseVersionNotMatch           = -20011
   /**Failed to reach License Tracking Server.*/
   failedToReachDLS                 = -20200
   /** -30000~-39999: DBR error code. */
   /** The barcode format is invalid. */
   barcodeFormatInvalid             = -30009
   /** The QR Code license is invalid. */
   qrLicenseInvalid                 = -30016
   /** The 1D Barcode license is invalid. */
   1DLicenseInvalid                 = -30017
   /** The PDF417 license is invalid. */
   pdf417LicenseInvalid             = -30019
   /** The DATAMATRIX license is invalid. */
   dataMatrixLicenseInvalid         = -30020
   /** The custom module size is invalid. */
   customModuleSizeInvalid          = -30025
   /** The AZTEC license is invalid. */
   aztecLicenseInvalid              = -30041
   /** The Patchcode license is invalid. */
   patchCodeLicenseInvalid          = -30046
   /** The Postal code license is invalid. */
   postalCodeLicenseInvalid         = -30047
   /** The DPM license is invalid. */
   dpmLicenseInvalid                = -30048
   /** The frame decoding thread already exists. */
   frameDecodingThreadExists        = -30049
   /** Failed to stop the frame decoding thread. */
   stopDecodingThreadFailed         = -30050
   /** The Maxicode license is invalid. */
   maxiCodeLicenseInvalid           = -30057
   /** The GS1 Databar license is invalid. */
   gs1DatabarLicenseInvalid         = -30058
   /** The GS1 Composite code license is invalid. */
   gs1CompositeLicenseInvalid       = -30059
   /** The DotCode license is invalid. */
   dotCodeLicenseInvalid            = -30061
   /** The Pharmacode license is invalid. */
   pharmaCodeLicenseInvalid         = -30062
   /** -40000~-49999: DLR error code */
   /** Character Model file is not found. */
   characterModelFileNotFound       = -40100
   /** There is a conflict in the layout of TextLineGroup. */
   textLineGroupLayoutConflict      = -40101
   /** There is a conflict in the regex of TextLineGroup. */
   textLineGroupRegexConflict       = -40102
   /** -50000~-59999: DDN error code. */
   /** No content has been detected. */
   contentNotFound                  = -50056
   /*The quardrilateral is invalid. */
   quardrilateralInvalid            = -50057
   /** -60000~-69999: DCE error code. */
   /** The camera module is not exist. */
   cameraModelNotExist              = -60003
   /** The camera id does not exist. */
   cameraIDNotExist                 = -60006
   /** The sensor does not exist. */
   noSensor                         = -60045
   /**-70000~-79999: Panorama error code. */
   /**The panorama license is invalid. */
   panoramaLicenseInvalid           = -70060
   /** -80000~-89999: Reserved error code. */
   /**-90000~-99999: DCP error code. */
   /** The resource path is not exist. */
   resourcePathNotExist             = -90001
   /** Failed to load resource. */
   resourceLoadFailed               = -90002
   /** The code specification is not found. */
   codeSpecificationNotFound        = -90003
   /** The full code string is empty. */
   fullCodeEmpty                    = -90004
   /** Failed to preprocess the full code string */
   fullCodePreprocessFailed         = -90005
   /** The license for parsing South Africa Driver License is invalid. */
   zadlLicenseInvalid               = -90006
   /** The license for parsing North America DL/ID is invalid. */
   aamvadlidLicenseInvalid          = -90007
   /** The license for parsing Aadhaar is invalid. */
   aadhaarLicenseInvalid            = -90008
   /** The license for parsing Machine Readable Travel Documents is invalid. */
   mrtdLicenseInvalid               = -90009
   /** The license for parsing Vehicle Identification Number is invalid. */
   vinLicenseInvalid                = -90010
   /** The license for parsing customized code type is invalid. */
   customizedCodeTypeLicenseInvalid = -90011
}
typedef enum ErrorCode
{
   /** Successful. */
   EC_OK = 0,
   /** -10000~-19999: Common error code. */
   /** Unknown error. */
   EC_UNKNOWN = -10000,
   /**Not enough memory to perform the operation. */
   EC_NO_MEMORY = -10001,
   /** Null pointer */
   EC_NULL_POINTER = -10002,
   /** License invalid. */
   EC_LICENSE_INVALID = -10003,
   /** License expired. */
   EC_LICENSE_EXPIRED = -10004,
   /** File not found. */
   EC_FILE_NOT_FOUND = -10005,
   /** The file type is not supported. */
   EC_FILE_TYPE_NOT_SUPPORTED = -10006,
   /** The BPP (Bits Per Pixel) is not supported. */
   EC_BPP_NOT_SUPPORTED = -10007,
   /** The index is invalid. */
   EC_INDEX_INVALID = -10008,
   /** The input region value parameter is invalid. */
   EC_CUSTOM_REGION_INVALID = -10010,
   /** Failed to read the image. */
   EC_IMAGE_READ_FAILED = -10012,
   /** Failed to read the TIFF image. */
   EC_TIFF_READ_FAILED = -10013,
   /** The DIB (Device-Independent Bitmaps) buffer is invalid. */
   EC_DIB_BUFFER_INVALID = -10018,
   /** Failed to read the PDF image. */
   EC_PDF_READ_FAILED = -10021,
   /** The PDF DLL is missing. */
   EC_PDF_DLL_MISSING = -10022,
   /** The page number is invalid. */
   EC_PAGE_NUMBER_INVALID = -10023,
   /** The custom size is invalid. */
   EC_CUSTOM_SIZE_INVALID = -10024,
   /** timeout. */
   EC_TIMEOUT = -10026,
   /** Json parse failed. */
   EC_JSON_PARSE_FAILED = -10030,
   /** Json type invalid. */
   EC_JSON_TYPE_INVALID = -10031,
   /** Json key invalid. */
   EC_JSON_KEY_INVALID = -10032,
   /** Json value invalid. */
   EC_JSON_VALUE_INVALID = -10033,
   /** Json name key missing. */
   EC_JSON_NAME_KEY_MISSING = -10034,
   /** The value of the key "Name" is duplicated. */
   EC_JSON_NAME_VALUE_DUPLICATED = -10035,
   /** Template name invalid. */
   EC_TEMPLATE_NAME_INVALID = -10036,
   /** The name reference is invalid. */
   EC_JSON_NAME_REFERENCE_INVALID = -10037,
   /** Parameter value invalid. */
   EC_PARAMETER_VALUE_INVALID = -10038,
   /** The domain of your current site does not match the domain bound in the current product key. */
   EC_DOMAIN_NOT_MATCH = -10039,
   /** The reserved info does not match the reserved info bound in the current product key. */
   EC_RESERVED_INFO_NOT_MATCH = -10040,
   /** The license key does not match the license content. */
   EC_LICENSE_KEY_NOT_MATCH = -10043,
   /** Failed to request the license content. */
   EC_REQUEST_FAILED = -10044,
   /** Failed to init the license. */
   EC_LICENSE_INIT_FAILED = -10045,
   /** Failed to set mode's argument. */
   EC_SET_MODE_ARGUMENT_ERROR = -10051,
   /** The license content is invalid. */
   EC_LICENSE_CONTENT_INVALID = -10052,
   /** The license key is invalid. */
   EC_LICENSE_KEY_INVALID = -10053,
   /** The license key has no remaining quota. */
   EC_LICENSE_DEVICE_RUNS_OUT = -10054,
   /** Failed to get mode's argument. */
   EC_GET_MODE_ARGUMENT_ERROR = -10055,
   /** The Intermediate Result Types license is invalid. */
   EC_IRT_LICENSE_INVALID = -10056,
   /** Failed to save file. */
   EC_FILE_SAVE_FAILED = -10058,
   /** The stage type is invalid. */
   EC_STAGE_TYPE_INVALID = -10059,
   /** The image orientation is invalid. */
   EC_IMAGE_ORIENTATION_INVALID = -10060,
   /** Complex tempalte can't be converted to simplified settings. */
   EC_CONVERT_COMPLEX_TEMPLATE_ERROR = -10061,
   /** Reject function call while capturing in progress.*/
   EC_CALL_REJECTED_WHEN_CAPTURING = -10062,
   /**The input image source was not found.*/
   EC_NO_IMAGE_SOURCE = -10063,
   /**Failed to read directory.*/
   EC_READ_DIRECTORY_FAILED = -10064,
   /**[Name] Module not found.*/
   /**Name : */
   /**DynamsoftBarcodeReader*/
   /**DynamsoftLabelRecognizer*/
   /**DynamsoftDocumentNormalizer*/
   EC_MODULE_NOT_FOUND = -10065,
   /**The file already exists but overwriting is disabled.*/
   EC_FILE_ALREADY_EXISTS = -10067,
   /**The file path does not exist but cannot be created, or cannot be created for any other reason.*/
   EC_CREATE_FILE_FAILED = -10068,
   /**The input ImageData object contains invalid parameter(s).*/
   EC_IMGAE_DATA_INVALID = -10069,
   /**The size of the input image do not meet the requirements.*/
   EC_IMAGE_SIZE_NOT_MATCH = -10070,
   /**The pixel format of the input image do not meet the requirements.*/
   EC_IMAGE_PIXEL_FORMAT_NOT_MATCH = -10071,
   /**The section level result is irreplaceable.*/
   EC_SECTION_LEVEL_RESULT_IRREPLACEABLE = -10072,
   /**The axis definition is incorrect.*/
   EC_AXIS_DEFINITION_INCORRECT = -10073,
   /**The result is not replaceable due to type mismatch*/
   EC_RESULT_TYPE_MISMATCH_IRREPLACEABLE = -10074,
   /**Failed to load the PDF library.*/
   EC_PDF_LIBRARY_LOAD_FAILED = -10075,
   /** -20000~-29999: DLS license error code. */
   /** No license. */
   EC_NO_LICENSE = -20000,
   /** The Handshake Code is invalid. */
   EC_HANDSHAKE_CODE_INVALID = -20001,
   /** Failed to read or write license buffer. */
   EC_LICENSE_BUFFER_FAILED = -20002,
   /** Failed to synchronize license info with license server. */
   EC_LICENSE_SYNC_FAILED = -20003,
   /** Device dose not match with buffer. */
   EC_DEVICE_NOT_MATCH = -20004,
   /** Failed to bind device. */
   EC_BIND_DEVICE_FAILED = -20005,
   /** Instance count is over limit. */
   EC_INSTANCE_COUNT_OVER_LIMIT = -20008,
   /** Trial License */
   EC_TRIAL_LICENSE = -20010,
   /**Online license validation failed due to network issues. Using cached license information for validation*/
   EC_LICENSE_CACHE_USED = -20012,
   /** Failed to reach License Server. */
   EC_FAILED_TO_REACH_DLS = -20200,
   /** -30000~-39999: DBR error code. */
   /** The barcode format is invalid. */
   EC_BARCODE_FORMAT_INVALID = -30009,
   /** The QR Code license is invalid. */
   EC_QR_LICENSE_INVALID = -30016,
   /** The 1D Barcode license is invalid. */
   EC_1D_LICENSE_INVALID = -30017,
   /** The PDF417 license is invalid. */
   EC_PDF417_LICENSE_INVALID = -30019,
   /** The DATAMATRIX license is invalid. */
   EC_DATAMATRIX_LICENSE_INVALID = -30020,
   /** The custom module size is invalid. */
   EC_CUSTOM_MODULESIZE_INVALID = -30025,
   /** The AZTEC license is invalid. */
   EC_AZTEC_LICENSE_INVALID = -30041,
   /** The Patchcode license is invalid. */
   EC_PATCHCODE_LICENSE_INVALID = -30046,
   /** The Postal code license is invalid. */
   EC_POSTALCODE_LICENSE_INVALID = -30047,
   /** The DPM license is invalid. */
   EC_DPM_LICENSE_INVALID = -30048,
   /** The frame decoding thread already exists. */
   EC_FRAME_DECODING_THREAD_EXISTS = -30049,
   /** Failed to stop the frame decoding thread. */
   EC_STOP_DECODING_THREAD_FAILED = -30050,
   /** The Maxicode license is invalid. */
   EC_MAXICODE_LICENSE_INVALID = -30057,
   /** The GS1 Databar license is invalid. */
   EC_GS1_DATABAR_LICENSE_INVALID = -30058,
   /** The GS1 Composite code license is invalid. */
   EC_GS1_COMPOSITE_LICENSE_INVALID = -30059,
   /** The DotCode license is invalid. */
   EC_DOTCODE_LICENSE_INVALID = -30061,
   /** The Pharmacode license is invalid. */
   EC_PHARMACODE_LICENSE_INVALID = -30062,
   /** -40000~-49999: DLR error code */
   /** Character Model file is not found. */
   EC_CHARACTER_MODEL_FILE_NOT_FOUND = -40100,
   /**There is a conflict in the layout of TextLineGroup. */
   EC_TEXT_LINE_GROUP_LAYOUT_CONFLICT = -40101,
   /**There is a conflict in the regex of TextLineGroup. */
   EC_TEXT_LINE_GROUP_REGEX_CONFLICT = -40102,
   /** -50000~-59999: DDN error code. */
   /**No content has been detected. */
   EC_CONTENT_NOT_FOUND = -50056,
   /*The quardrilateral is invalid. */
   EC_QUADRILATERAL_INVALID = -50057,
   /** -60000~-69999: DCE error code. */
   /**-60000~-69999: DCE error code*/
   EC_CAMERA_MODULE_NOT_EXIST = -60003;
   EC_CAMERA_ID_NOT_EXIST = -60006;
   EC_NO_SENSOR = -60045;
   /**-70000~-79999: Panorama error code. */
   /**The panorama license is invalid. */
   EC_PANORAMA_LICENSE_INVALID = -70060,
   /** -80000~-89999: Reserved error code. */
   /**-90000~-99999: DCP error code. */
   /** The resource path is not exist. */
   EC_RESOURCE_PATH_NOT_EXIST = -90001,
   /** Failed to load resource. */
   EC_RESOURCE_LOAD_FAILED = -90002,
   /** The code specification is not found. */
   EC_CODE_SPECIFICATION_NOT_FOUND = -90003,
   /** The full code string is empty. */
   EC_FULL_CODE_EMPTY = -90004,
   /** Failed to preprocess the full code string */
   EC_FULL_CODE_PREPROCESS_FAILED = -90005,
   /** The license for parsing South Africa Driver License is invalid. */
   EC_ZA_DL_LICENSE_INVALID = -90006,
   /** The license for parsing North America DL/ID is invalid. */
   EC_AAMVA_DL_ID_LICENSE_INVALID = -90007,
   /** The license for parsing Aadhaar is invalid. */
   EC_AADHAAR_LICENSE_INVALID = -90008,
   /** The license for parsing Machine Readable Travel Documents is invalid. */
   EC_MRTD_LICENSE_INVALID = -90009,
   /** The license for parsing Vehicle Identification Number is invalid. */
   EC_VIN_LICENSE_INVALID = -90010,
   /** The license for parsing customized code type is invalid. */
   EC_CUSTOMIZED_CODE_TYPE_LICENSE_INVALID = -90011,
} ErrorCode;

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

  • Latest version (2.2.20)
  • Version 2.x
    • Version 2.2.10
    • Version 2.2.0
    • Version 2.0.30
    • Version 2.0.20
    • Version 2.0.10
    • Version 2.0.0
Change +
© 2003–2024 Dynamsoft. All rights reserved.
Privacy Statement / Site Map / Home / Purchase / Support