@@ -441,211 +441,211 @@ public @interface EnumErrorCode
441
441
```
442
442
>
443
443
```objc
444
- typedef NS_ERROR_ENUM (DSErrorDomain , DSErrorCode ) {
444
+ typedef NS_ERROR_ENUM (DSErrorDomain , DSError ) {
445
445
/* *Successful. */
446
- DSErrorCodeOK = 0 ,
446
+ DSErrorOK = 0 ,
447
447
/* *Unknown error. */
448
- DSErrorCodeUnknown = - 10000 ,
448
+ DSErrorUnknown = - 10000 ,
449
449
/* *Not enough memory to perform the operation. */
450
- DSErrorCodeNoMemory = - 10001 ,
450
+ DSErrorNoMemory = - 10001 ,
451
451
/* *Null pointer */
452
- DSErrorCodeNullPointer = - 10002 ,
452
+ DSErrorNullPointer = - 10002 ,
453
453
/* *License invalid*/
454
- DSErrorCodeLicenseInvalid = - 10003 ,
454
+ DSErrorLicenseInvalid = - 10003 ,
455
455
/* *License expired*/
456
- DSErrorCodeLicenseExpired = - 10004 ,
456
+ DSErrorLicenseExpired = - 10004 ,
457
457
/* *File not found*/
458
- DSErrorCodeFileNotFound = - 10005 ,
458
+ DSErrorFileNotFound = - 10005 ,
459
459
/* *The file type is not supported. */
460
- DSErrorCodeFiletypeNotSupported = - 10006 ,
460
+ DSErrorFiletypeNotSupported = - 10006 ,
461
461
/* *The BPP (Bits Per Pixel) is not supported. */
462
- DSErrorCodeBPPNotSupported = - 10007 ,
462
+ DSErrorBPPNotSupported = - 10007 ,
463
463
/* *Failed to read the image. */
464
- DSErrorCodeImageReadFailed = - 10012 ,
464
+ DSErrorImageReadFailed = - 10012 ,
465
465
/* *Failed to read the TIFF image. */
466
- DSErrorCodeTiffReadFailed = - 10013 ,
466
+ DSErrorTiffReadFailed = - 10013 ,
467
467
/* *The DIB (Device-Independent Bitmaps) buffer is invalid. */
468
- DSErrorCodeDIBBufferInvalid = - 10018 ,
468
+ DSErrorDIBBufferInvalid = - 10018 ,
469
469
/* *Failed to read the PDF image. */
470
- DSErrorCodePdfReadFailed = - 10021 ,
470
+ DSErrorPdfReadFailed = - 10021 ,
471
471
/* *The PDF DLL is missing. */
472
- DSErrorCodePdfDllMissing = - 10022 ,
472
+ DSErrorPdfDllMissing = - 10022 ,
473
473
/* *The page number is invalid. */
474
- DSErrorCodePageNumberInvalid = - 10023 ,
474
+ DSErrorPageNumberInvalid = - 10023 ,
475
475
/* *The custom size is invalid. */
476
- DSErrorCodeCustomSizeInvalid = - 10024 ,
476
+ DSErrorCustomSizeInvalid = - 10024 ,
477
477
/* * timeout. */
478
- DSErrorCodeTimeout = - 10026 ,
478
+ DSErrorTimeout = - 10026 ,
479
479
/* *Json parse failed*/
480
- DSErrorCodeJsonParseFailed = - 10030 ,
480
+ DSErrorJsonParseFailed = - 10030 ,
481
481
/* *Json type invalid*/
482
- DSErrorCodeJsonTypeInvalid = - 10031 ,
482
+ DSErrorJsonTypeInvalid = - 10031 ,
483
483
/* *Json key invalid*/
484
- DSErrorCodeJsonKeyInvalid = - 10032 ,
484
+ DSErrorJsonKeyInvalid = - 10032 ,
485
485
/* *Json value invalid*/
486
- DSErrorCodeJsonValueInvalid = - 10033 ,
486
+ DSErrorJsonValueInvalid = - 10033 ,
487
487
/* *Json name key missing*/
488
- DSErrorCodeJsonNameKeyMissing = - 10034 ,
488
+ DSErrorJsonNameKeyMissing = - 10034 ,
489
489
/* *The value of the key "Name" is duplicated.*/
490
- DSErrorCodeJsonNameValueDuplicated = - 10035 ,
490
+ DSErrorJsonNameValueDuplicated = - 10035 ,
491
491
/* *Template name invalid*/
492
- DSErrorCodeTemplateNameInvalid = - 10036 ,
492
+ DSErrorTemplateNameInvalid = - 10036 ,
493
493
/* *The name reference is invalid.*/
494
- DSErrorCodeJsonNameReferenceInvalid = - 10037 ,
494
+ DSErrorJsonNameReferenceInvalid = - 10037 ,
495
495
/* *Parameter value invalid*/
496
- DSErrorCodeParameterValueInvalid = - 10038 ,
496
+ DSErrorParameterValueInvalid = - 10038 ,
497
497
/* *The domain of your current site does not match the domain bound in the current product key.*/
498
- DSErrorCodeDomainNotMatch = - 10039 ,
498
+ DSErrorDomainNotMatch = - 10039 ,
499
499
/* *The reserved info does not match the reserved info bound in the current product key.*/
500
- DSErrorCodeReservedInfoNotMatch = - 10040 ,
500
+ DSErrorReservedInfoNotMatch = - 10040 ,
501
501
/* *The license key does not match the license content.*/
502
- DSErrorCodeLicenseKeyNotMatch = - 10043 ,
502
+ DSErrorLicenseKeyNotMatch = - 10043 ,
503
503
/* *Failed to request the license content.*/
504
- DSErrorCodeRequestFailed = - 10044 ,
504
+ DSErrorRequestFailed = - 10044 ,
505
505
/* *Failed to init the license.*/
506
- DSErrorCodeLicenseInitFailed = - 10045 ,
506
+ DSErrorLicenseInitFailed = - 10045 ,
507
507
/* *Failed to set mode's argument.*/
508
- DSErrorCodeSetModeArgumentError = - 10051 ,
508
+ DSErrorSetModeArgumentError = - 10051 ,
509
509
/* *The license content is invalid.*/
510
- DSErrorCodeLicenseContentInvalid = - 10052 ,
510
+ DSErrorLicenseContentInvalid = - 10052 ,
511
511
/* *The license key is invalid.*/
512
- DSErrorCodeLicenseKeyInvalid = - 10053 ,
512
+ DSErrorLicenseKeyInvalid = - 10053 ,
513
513
/* *The license key has no remaining quota.*/
514
- DSErrorCodeLicenseDeviceRunsOut = - 10054 ,
514
+ DSErrorLicenseDeviceRunsOut = - 10054 ,
515
515
/* *Failed to get mode's argument.*/
516
- DSErrorCodeGetModeArgumentError = - 10055 ,
516
+ DSErrorGetModeArgumentError = - 10055 ,
517
517
/* *The Intermediate Result Types license is invalid.*/
518
- DSErrorCodeIrtLicenseInvalid = - 10056 ,
518
+ DSErrorIrtLicenseInvalid = - 10056 ,
519
519
/* *Failed to save file.*/
520
- DSErrorCodeFileSaveFailed = - 10058 ,
520
+ DSErrorFileSaveFailed = - 10058 ,
521
521
/* *The stage type is invalid.*/
522
- DSErrorCodeStageTypeInvalid = - 10059 ,
522
+ DSErrorStageTypeInvalid = - 10059 ,
523
523
/* *The image orientation is invalid.*/
524
- DSErrorCodeImageOrientationInvalid = - 10060 ,
524
+ DSErrorImageOrientationInvalid = - 10060 ,
525
525
/* *Failed to convert complex tempalte to simplified settings.*/
526
- DSErrorCodeConvertComplexTemplateError = - 10061 ,
526
+ DSErrorConvertComplexTemplateError = - 10061 ,
527
527
/* *Reject function call while capturing in progress.*/
528
- DSErrorCodeCallRejectedWhenCapturing = - 10062 ,
528
+ DSErrorCallRejectedWhenCapturing = - 10062 ,
529
529
/* *The input image source was not found.*/
530
- DSErrorCodeNoImageSource = - 10063 ,
530
+ DSErrorNoImageSource = - 10063 ,
531
531
/* *Failed to read directory.*/
532
- DSErrorCodeReadDirectoryFailed = - 10064 ,
532
+ DSErrorReadDirectoryFailed = - 10064 ,
533
533
/* *[Name] Module not found.*/
534
534
/* *Name : */
535
535
/* *DynamsoftBarcodeReader*/
536
536
/* *DynamsoftLabelRecognizer*/
537
537
/* *DynamsoftDocumentNormalizer*/
538
- DSErrorCodeModuleNotFound = - 10065 ,
538
+ DSErrorModuleNotFound = - 10065 ,
539
539
/* *The file already exists but overwriting is disabled.*/
540
- DSErrorCodeFileAlreadyExists = - 10067 ,
540
+ DSErrorFileAlreadyExists = - 10067 ,
541
541
/* *The file path does not exist but cannot be created, or cannot be created for any other reason.*/
542
- DSErrorCodeCreateFileFailed = - 10068 ,
542
+ DSErrorCreateFileFailed = - 10068 ,
543
543
/* *The input ImageData object contains invalid parameter(s).*/
544
- DSErrorCodeImageDataInvalid = - 10069 ,
544
+ DSErrorImageDataInvalid = - 10069 ,
545
545
/* *The size of the input image does not meet the requirements.*/
546
546
DSErrorImageSizeNotMatch = - 10070 ,
547
547
/* *The pixel format of the input image does not meet the requirements.*/
548
548
DSErrorImagePixelFormatNotMatch = - 10071 ,
549
549
/* *The section level result is irreplaceable.*/
550
550
DSErrorSectionLevelResultIrreplaceable = - 10072 ,
551
551
/* *No license.*/
552
- DSErrorCodeNoLicense = - 20000 ,
552
+ DSErrorNoLicense = - 20000 ,
553
553
/* *The handshake code is invalid. */
554
- DSErrorCodeHandshakeCodeInvalid = - 20001 ,
554
+ DSErrorHandshakeCodeInvalid = - 20001 ,
555
555
/* *Failed to read or write license cache. */
556
- DSErrorCodeLicenseBufferFailed = - 20002 ,
556
+ DSErrorLicenseBufferFailed = - 20002 ,
557
557
/* *Falied to synchronize license info wirh license tracking server. */
558
- DSErrorCodeLicenseSyncFailed = - 20003 ,
558
+ DSErrorLicenseSyncFailed = - 20003 ,
559
559
/* *Device does not match with license buffer. */
560
- DSErrorCodeDeviceNotMatch = - 20004 ,
560
+ DSErrorDeviceNotMatch = - 20004 ,
561
561
/* *Falied to bind device. */
562
- DSErrorCodeBindDeviceFailed = - 20005 ,
562
+ DSErrorBindDeviceFailed = - 20005 ,
563
563
/* *Install.*/
564
- DSErrorCodeInstanceCountOverLimit = - 20008 ,
564
+ DSErrorInstanceCountOverLimit = - 20008 ,
565
565
/* *Trial License*/
566
- DSErrorCodeTrialLicense = - 20010 ,
566
+ DSErrorTrialLicense = - 20010 ,
567
567
/* *The license is not valid for current version*/
568
- DSErrorCodeLicenseVersionNotMatch = - 20011 ,
568
+ DSErrorLicenseVersionNotMatch = - 20011 ,
569
569
/* *Failed to reach License Tracking Server.*/
570
- DSErrorCodeFailedToReachDLS = - 20200
570
+ DSErrorFailedToReachDLS = - 20200
571
571
/* * -30000~-39999: DBR error code. */
572
572
/* * The barcode format is invalid. */
573
- DSErrorCodeBarcodeFormatInvalid = - 30009 ,
573
+ DSErrorBarcodeFormatInvalid = - 30009 ,
574
574
/* * The QR Code license is invalid. */
575
- DSErrorCodeQRLicenseInvalid = - 30016 ,
575
+ DSErrorQRLicenseInvalid = - 30016 ,
576
576
/* * The 1D Barcode license is invalid. */
577
- DSErrorCode1DLicenseInvalid = - 30017 ,
577
+ DSError1DLicenseInvalid = - 30017 ,
578
578
/* * The PDF417 license is invalid. */
579
- DSErrorCodePDF417LicenseInvalid = - 30019 ,
579
+ DSErrorPDF417LicenseInvalid = - 30019 ,
580
580
/* * The DATAMATRIX license is invalid. */
581
- DSErrorCodeDATAMATRIXLicenseInvalid = - 30020 ,
581
+ DSErrorDATAMATRIXLicenseInvalid = - 30020 ,
582
582
/* * The custom module size is invalid. */
583
- DSErrorCodeCustomModuleSizeInvalid = - 30025 ,
583
+ DSErrorCustomModuleSizeInvalid = - 30025 ,
584
584
/* * The AZTEC license is invalid. */
585
- DSErrorCodeAztecLicenseInvalid = - 30041 ,
585
+ DSErrorAztecLicenseInvalid = - 30041 ,
586
586
/* * The Patchcode license is invalid. */
587
- DSErrorCodePatchCodeLicenseInvalid = - 30046 ,
587
+ DSErrorPatchCodeLicenseInvalid = - 30046 ,
588
588
/* * The Postal code license is invalid. */
589
- DSErrorCodePostalCodeLicenseInvalid = - 30047 ,
589
+ DSErrorPostalCodeLicenseInvalid = - 30047 ,
590
590
/* * The DPM license is invalid. */
591
- DSErrorCodeDPMLicenseInvalid = - 30048 ,
591
+ DSErrorDPMLicenseInvalid = - 30048 ,
592
592
/* * The frame decoding thread already exists. */
593
- DSErrorCodeFrameDecodingThreadExists = - 30049 ,
593
+ DSErrorFrameDecodingThreadExists = - 30049 ,
594
594
/* * Failed to stop the frame decoding thread. */
595
- DSErrorCodeStopDecodingThreadFailed = - 30050 ,
595
+ DSErrorStopDecodingThreadFailed = - 30050 ,
596
596
/* * The Maxicode license is invalid. */
597
- DSErrorCodeMaxiCodeLicenseInvalid = - 30057 ,
597
+ DSErrorMaxiCodeLicenseInvalid = - 30057 ,
598
598
/* * The GS1 Databar license is invalid. */
599
- DSErrorCodeGS1DatabarLicenseInvalid = - 30058 ,
599
+ DSErrorGS1DatabarLicenseInvalid = - 30058 ,
600
600
/* * The GS1 Composite code license is invalid. */
601
- DSErrorCodeGS1CompositeLicenseInvalid = - 30059 ,
601
+ DSErrorGS1CompositeLicenseInvalid = - 30059 ,
602
602
/* * The DotCode license is invalid. */
603
- DSErrorCodeDotCodeLicenseInvalid = - 30061 ,
603
+ DSErrorDotCodeLicenseInvalid = - 30061 ,
604
604
/* * The Pharmacode license is invalid. */
605
- DSErrorCodePharmaCodeLicenseInvalid = - 30062 ,
605
+ DSErrorPharmaCodeLicenseInvalid = - 30062 ,
606
606
/* * -40000~-49999: DLR error code */
607
607
/* * Character Model file is not found. */
608
- DSErrorCodeCharacterModelFileNotFound = - 40100 ,
608
+ DSErrorCharacterModelFileNotFound = - 40100 ,
609
609
/* * There is a conflict in the layout of TextLineGroup. */
610
610
DSErrorTextLineGroupLayoutConflict = - 40101 ,
611
611
/* * There is a conflict in the regex of TextLineGroup. */
612
612
DSErrorTextLineGroupRegexConflict = - 40102 ,
613
613
/* * -50000~-59999: DDN error code. */
614
614
/* *No content has been detected. */
615
- DSErrorCodeContentNotFound = - 50056 ,
615
+ DSErrorContentNotFound = - 50056 ,
616
616
/* The quardrilateral is invalid. */
617
- DSErrorCodeQuardrilateralInvalid = - 50057 ,
617
+ DSErrorQuardrilateralInvalid = - 50057 ,
618
618
/* * -60000~-69999: DCE error code. */
619
- DSErrorCodeCameraModelNotExist = - 60003 ,
620
- DSErrorCodeCameraIDNotExist = - 60006 ,
621
- DSErrorCodeNoSensor = - 60045 ,
619
+ DSErrorCameraModelNotExist = - 60003 ,
620
+ DSErrorCameraIDNotExist = - 60006 ,
621
+ DSErrorNoSensor = - 60045 ,
622
622
/* *-70000~-79999: Panorama error code. */
623
623
/* *The panorama license is invalid. */
624
- DSErrorCodePanoramaLicenseInvalid = - 70060 ,
624
+ DSErrorPanoramaLicenseInvalid = - 70060 ,
625
625
/* * -80000~-89999: Reserved error code. */
626
626
/* *-90000~-99999: DCP error code. */
627
627
/* * The resource path is not exist. */
628
- DSErrorCodeResourcePathNotExist = - 90001 ,
628
+ DSErrorResourcePathNotExist = - 90001 ,
629
629
/* * Failed to load resource. */
630
- DSErrorCodeResourceLoadFailed = - 90002 ,
630
+ DSErrorResourceLoadFailed = - 90002 ,
631
631
/* * The code specification is not found. */
632
- DSErrorCodeCodeSpecificationNotFound = - 90003 ,
632
+ DSErrorCodeSpecificationNotFound = - 90003 ,
633
633
/* * The full code string is empty. */
634
- DSErrorCodeFullCodeEmpty = - 90004 ,
634
+ DSErrorFullCodeEmpty = - 90004 ,
635
635
/* * Failed to preprocess the full code string */
636
- DSErrorCodeFullCodePreprocessFailed = - 90005 ,
636
+ DSErrorFullCodePreprocessFailed = - 90005 ,
637
637
/* * The license for parsing South Africa Driver License is invalid. */
638
- DSErrorCodeZADLLicenseInvalid = - 90006 ,
638
+ DSErrorZADLLicenseInvalid = - 90006 ,
639
639
/* * The license for parsing North America DL/ID is invalid. */
640
- DSErrorCodeAAMVADLIDLicenseInvalid = - 90007 ,
640
+ DSErrorAAMVADLIDLicenseInvalid = - 90007 ,
641
641
/* * The license for parsing Aadhaar is invalid. */
642
- DSErrorCodeAADHAARLicenseInvalid = - 90008 ,
642
+ DSErrorAADHAARLicenseInvalid = - 90008 ,
643
643
/* * The license for parsing Machine Readable Travel Documents is invalid. */
644
- DSErrorCodeMRTDLicenseInvalid = - 90009 ,
644
+ DSErrorMRTDLicenseInvalid = - 90009 ,
645
645
/* * The license for parsing Vehicle Identification Number is invalid. */
646
- DSErrorCodeVINLicenseInvalid = - 90010 ,
646
+ DSErrorVINLicenseInvalid = - 90010 ,
647
647
/* * The license for parsing customized code type is invalid. */
648
- DSErrorCodeCustomizedCodeTypeLicenseInvalid = - 90011 ,
648
+ DSErrorCustomizedCodeTypeLicenseInvalid = - 90011 ,
649
649
};
650
650
```
651
651
>
0 commit comments