Skip to content

Commit ba07915

Browse files
Merge pull request #89 from dynamsoft-docs/preview
update to internal commit 75a466ea
2 parents a9f3ec1 + 6238754 commit ba07915

File tree

2 files changed

+96
-96
lines changed

2 files changed

+96
-96
lines changed

enums/core/error-code-v2.2.3000.md

Lines changed: 94 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -441,211 +441,211 @@ public @interface EnumErrorCode
441441
```
442442
>
443443
```objc
444-
typedef NS_ERROR_ENUM(DSErrorDomain, DSErrorCode) {
444+
typedef NS_ERROR_ENUM(DSErrorDomain, DSError) {
445445
/**Successful. */
446-
DSErrorCodeOK = 0,
446+
DSErrorOK = 0,
447447
/**Unknown error. */
448-
DSErrorCodeUnknown = -10000,
448+
DSErrorUnknown = -10000,
449449
/**Not enough memory to perform the operation. */
450-
DSErrorCodeNoMemory = -10001,
450+
DSErrorNoMemory = -10001,
451451
/**Null pointer */
452-
DSErrorCodeNullPointer = -10002,
452+
DSErrorNullPointer = -10002,
453453
/**License invalid*/
454-
DSErrorCodeLicenseInvalid = -10003,
454+
DSErrorLicenseInvalid = -10003,
455455
/**License expired*/
456-
DSErrorCodeLicenseExpired = -10004,
456+
DSErrorLicenseExpired = -10004,
457457
/**File not found*/
458-
DSErrorCodeFileNotFound = -10005,
458+
DSErrorFileNotFound = -10005,
459459
/**The file type is not supported. */
460-
DSErrorCodeFiletypeNotSupported = -10006,
460+
DSErrorFiletypeNotSupported = -10006,
461461
/**The BPP (Bits Per Pixel) is not supported. */
462-
DSErrorCodeBPPNotSupported = -10007,
462+
DSErrorBPPNotSupported = -10007,
463463
/**Failed to read the image. */
464-
DSErrorCodeImageReadFailed = -10012,
464+
DSErrorImageReadFailed = -10012,
465465
/**Failed to read the TIFF image. */
466-
DSErrorCodeTiffReadFailed = -10013,
466+
DSErrorTiffReadFailed = -10013,
467467
/**The DIB (Device-Independent Bitmaps) buffer is invalid. */
468-
DSErrorCodeDIBBufferInvalid = -10018,
468+
DSErrorDIBBufferInvalid = -10018,
469469
/**Failed to read the PDF image. */
470-
DSErrorCodePdfReadFailed = -10021,
470+
DSErrorPdfReadFailed = -10021,
471471
/**The PDF DLL is missing. */
472-
DSErrorCodePdfDllMissing = -10022,
472+
DSErrorPdfDllMissing = -10022,
473473
/**The page number is invalid. */
474-
DSErrorCodePageNumberInvalid = -10023,
474+
DSErrorPageNumberInvalid = -10023,
475475
/**The custom size is invalid. */
476-
DSErrorCodeCustomSizeInvalid = -10024,
476+
DSErrorCustomSizeInvalid = -10024,
477477
/** timeout. */
478-
DSErrorCodeTimeout = -10026,
478+
DSErrorTimeout = -10026,
479479
/**Json parse failed*/
480-
DSErrorCodeJsonParseFailed = -10030,
480+
DSErrorJsonParseFailed = -10030,
481481
/**Json type invalid*/
482-
DSErrorCodeJsonTypeInvalid = -10031,
482+
DSErrorJsonTypeInvalid = -10031,
483483
/**Json key invalid*/
484-
DSErrorCodeJsonKeyInvalid = -10032,
484+
DSErrorJsonKeyInvalid = -10032,
485485
/**Json value invalid*/
486-
DSErrorCodeJsonValueInvalid = -10033,
486+
DSErrorJsonValueInvalid = -10033,
487487
/**Json name key missing*/
488-
DSErrorCodeJsonNameKeyMissing = -10034,
488+
DSErrorJsonNameKeyMissing = -10034,
489489
/**The value of the key "Name" is duplicated.*/
490-
DSErrorCodeJsonNameValueDuplicated = -10035,
490+
DSErrorJsonNameValueDuplicated = -10035,
491491
/**Template name invalid*/
492-
DSErrorCodeTemplateNameInvalid = -10036,
492+
DSErrorTemplateNameInvalid = -10036,
493493
/**The name reference is invalid.*/
494-
DSErrorCodeJsonNameReferenceInvalid = -10037,
494+
DSErrorJsonNameReferenceInvalid = -10037,
495495
/**Parameter value invalid*/
496-
DSErrorCodeParameterValueInvalid = -10038,
496+
DSErrorParameterValueInvalid = -10038,
497497
/**The domain of your current site does not match the domain bound in the current product key.*/
498-
DSErrorCodeDomainNotMatch = -10039,
498+
DSErrorDomainNotMatch = -10039,
499499
/**The reserved info does not match the reserved info bound in the current product key.*/
500-
DSErrorCodeReservedInfoNotMatch = -10040,
500+
DSErrorReservedInfoNotMatch = -10040,
501501
/**The license key does not match the license content.*/
502-
DSErrorCodeLicenseKeyNotMatch = -10043,
502+
DSErrorLicenseKeyNotMatch = -10043,
503503
/**Failed to request the license content.*/
504-
DSErrorCodeRequestFailed = -10044,
504+
DSErrorRequestFailed = -10044,
505505
/**Failed to init the license.*/
506-
DSErrorCodeLicenseInitFailed = -10045,
506+
DSErrorLicenseInitFailed = -10045,
507507
/**Failed to set mode's argument.*/
508-
DSErrorCodeSetModeArgumentError = -10051,
508+
DSErrorSetModeArgumentError = -10051,
509509
/**The license content is invalid.*/
510-
DSErrorCodeLicenseContentInvalid = -10052,
510+
DSErrorLicenseContentInvalid = -10052,
511511
/**The license key is invalid.*/
512-
DSErrorCodeLicenseKeyInvalid = -10053,
512+
DSErrorLicenseKeyInvalid = -10053,
513513
/**The license key has no remaining quota.*/
514-
DSErrorCodeLicenseDeviceRunsOut = -10054,
514+
DSErrorLicenseDeviceRunsOut = -10054,
515515
/**Failed to get mode's argument.*/
516-
DSErrorCodeGetModeArgumentError = -10055,
516+
DSErrorGetModeArgumentError = -10055,
517517
/**The Intermediate Result Types license is invalid.*/
518-
DSErrorCodeIrtLicenseInvalid = -10056,
518+
DSErrorIrtLicenseInvalid = -10056,
519519
/**Failed to save file.*/
520-
DSErrorCodeFileSaveFailed = -10058,
520+
DSErrorFileSaveFailed = -10058,
521521
/**The stage type is invalid.*/
522-
DSErrorCodeStageTypeInvalid = -10059,
522+
DSErrorStageTypeInvalid = -10059,
523523
/**The image orientation is invalid.*/
524-
DSErrorCodeImageOrientationInvalid = -10060,
524+
DSErrorImageOrientationInvalid = -10060,
525525
/**Failed to convert complex tempalte to simplified settings.*/
526-
DSErrorCodeConvertComplexTemplateError = -10061,
526+
DSErrorConvertComplexTemplateError = -10061,
527527
/**Reject function call while capturing in progress.*/
528-
DSErrorCodeCallRejectedWhenCapturing = -10062,
528+
DSErrorCallRejectedWhenCapturing = -10062,
529529
/**The input image source was not found.*/
530-
DSErrorCodeNoImageSource = -10063,
530+
DSErrorNoImageSource = -10063,
531531
/**Failed to read directory.*/
532-
DSErrorCodeReadDirectoryFailed = -10064,
532+
DSErrorReadDirectoryFailed = -10064,
533533
/**[Name] Module not found.*/
534534
/**Name : */
535535
/**DynamsoftBarcodeReader*/
536536
/**DynamsoftLabelRecognizer*/
537537
/**DynamsoftDocumentNormalizer*/
538-
DSErrorCodeModuleNotFound = -10065,
538+
DSErrorModuleNotFound = -10065,
539539
/**The file already exists but overwriting is disabled.*/
540-
DSErrorCodeFileAlreadyExists = -10067,
540+
DSErrorFileAlreadyExists = -10067,
541541
/**The file path does not exist but cannot be created, or cannot be created for any other reason.*/
542-
DSErrorCodeCreateFileFailed = -10068,
542+
DSErrorCreateFileFailed = -10068,
543543
/**The input ImageData object contains invalid parameter(s).*/
544-
DSErrorCodeImageDataInvalid = -10069,
544+
DSErrorImageDataInvalid = -10069,
545545
/**The size of the input image does not meet the requirements.*/
546546
DSErrorImageSizeNotMatch = -10070,
547547
/**The pixel format of the input image does not meet the requirements.*/
548548
DSErrorImagePixelFormatNotMatch = -10071,
549549
/**The section level result is irreplaceable.*/
550550
DSErrorSectionLevelResultIrreplaceable = -10072,
551551
/**No license.*/
552-
DSErrorCodeNoLicense = -20000,
552+
DSErrorNoLicense = -20000,
553553
/**The handshake code is invalid. */
554-
DSErrorCodeHandshakeCodeInvalid = -20001,
554+
DSErrorHandshakeCodeInvalid = -20001,
555555
/**Failed to read or write license cache. */
556-
DSErrorCodeLicenseBufferFailed = -20002,
556+
DSErrorLicenseBufferFailed = -20002,
557557
/**Falied to synchronize license info wirh license tracking server. */
558-
DSErrorCodeLicenseSyncFailed = -20003,
558+
DSErrorLicenseSyncFailed = -20003,
559559
/**Device does not match with license buffer. */
560-
DSErrorCodeDeviceNotMatch = -20004,
560+
DSErrorDeviceNotMatch = -20004,
561561
/**Falied to bind device. */
562-
DSErrorCodeBindDeviceFailed = -20005,
562+
DSErrorBindDeviceFailed = -20005,
563563
/**Install.*/
564-
DSErrorCodeInstanceCountOverLimit = -20008,
564+
DSErrorInstanceCountOverLimit = -20008,
565565
/**Trial License*/
566-
DSErrorCodeTrialLicense = -20010,
566+
DSErrorTrialLicense = -20010,
567567
/**The license is not valid for current version*/
568-
DSErrorCodeLicenseVersionNotMatch = -20011,
568+
DSErrorLicenseVersionNotMatch = -20011,
569569
/**Failed to reach License Tracking Server.*/
570-
DSErrorCodeFailedToReachDLS = -20200
570+
DSErrorFailedToReachDLS = -20200
571571
/** -30000~-39999: DBR error code. */
572572
/** The barcode format is invalid. */
573-
DSErrorCodeBarcodeFormatInvalid = -30009,
573+
DSErrorBarcodeFormatInvalid = -30009,
574574
/** The QR Code license is invalid. */
575-
DSErrorCodeQRLicenseInvalid = -30016,
575+
DSErrorQRLicenseInvalid = -30016,
576576
/** The 1D Barcode license is invalid. */
577-
DSErrorCode1DLicenseInvalid = -30017,
577+
DSError1DLicenseInvalid = -30017,
578578
/** The PDF417 license is invalid. */
579-
DSErrorCodePDF417LicenseInvalid = -30019,
579+
DSErrorPDF417LicenseInvalid = -30019,
580580
/** The DATAMATRIX license is invalid. */
581-
DSErrorCodeDATAMATRIXLicenseInvalid = -30020,
581+
DSErrorDATAMATRIXLicenseInvalid = -30020,
582582
/** The custom module size is invalid. */
583-
DSErrorCodeCustomModuleSizeInvalid = -30025,
583+
DSErrorCustomModuleSizeInvalid = -30025,
584584
/** The AZTEC license is invalid. */
585-
DSErrorCodeAztecLicenseInvalid = -30041,
585+
DSErrorAztecLicenseInvalid = -30041,
586586
/** The Patchcode license is invalid. */
587-
DSErrorCodePatchCodeLicenseInvalid = -30046,
587+
DSErrorPatchCodeLicenseInvalid = -30046,
588588
/** The Postal code license is invalid. */
589-
DSErrorCodePostalCodeLicenseInvalid = -30047,
589+
DSErrorPostalCodeLicenseInvalid = -30047,
590590
/** The DPM license is invalid. */
591-
DSErrorCodeDPMLicenseInvalid = -30048,
591+
DSErrorDPMLicenseInvalid = -30048,
592592
/** The frame decoding thread already exists. */
593-
DSErrorCodeFrameDecodingThreadExists = -30049,
593+
DSErrorFrameDecodingThreadExists = -30049,
594594
/** Failed to stop the frame decoding thread. */
595-
DSErrorCodeStopDecodingThreadFailed = -30050,
595+
DSErrorStopDecodingThreadFailed = -30050,
596596
/** The Maxicode license is invalid. */
597-
DSErrorCodeMaxiCodeLicenseInvalid = -30057,
597+
DSErrorMaxiCodeLicenseInvalid = -30057,
598598
/** The GS1 Databar license is invalid. */
599-
DSErrorCodeGS1DatabarLicenseInvalid = -30058,
599+
DSErrorGS1DatabarLicenseInvalid = -30058,
600600
/** The GS1 Composite code license is invalid. */
601-
DSErrorCodeGS1CompositeLicenseInvalid = -30059,
601+
DSErrorGS1CompositeLicenseInvalid = -30059,
602602
/** The DotCode license is invalid. */
603-
DSErrorCodeDotCodeLicenseInvalid = -30061,
603+
DSErrorDotCodeLicenseInvalid = -30061,
604604
/** The Pharmacode license is invalid. */
605-
DSErrorCodePharmaCodeLicenseInvalid = -30062,
605+
DSErrorPharmaCodeLicenseInvalid = -30062,
606606
/** -40000~-49999: DLR error code */
607607
/** Character Model file is not found. */
608-
DSErrorCodeCharacterModelFileNotFound = -40100,
608+
DSErrorCharacterModelFileNotFound = -40100,
609609
/** There is a conflict in the layout of TextLineGroup. */
610610
DSErrorTextLineGroupLayoutConflict = -40101,
611611
/** There is a conflict in the regex of TextLineGroup. */
612612
DSErrorTextLineGroupRegexConflict = -40102,
613613
/** -50000~-59999: DDN error code. */
614614
/**No content has been detected. */
615-
DSErrorCodeContentNotFound = -50056,
615+
DSErrorContentNotFound = -50056,
616616
/*The quardrilateral is invalid. */
617-
DSErrorCodeQuardrilateralInvalid = -50057,
617+
DSErrorQuardrilateralInvalid = -50057,
618618
/** -60000~-69999: DCE error code. */
619-
DSErrorCodeCameraModelNotExist = -60003,
620-
DSErrorCodeCameraIDNotExist = -60006,
621-
DSErrorCodeNoSensor = -60045,
619+
DSErrorCameraModelNotExist = -60003,
620+
DSErrorCameraIDNotExist = -60006,
621+
DSErrorNoSensor = -60045,
622622
/**-70000~-79999: Panorama error code. */
623623
/**The panorama license is invalid. */
624-
DSErrorCodePanoramaLicenseInvalid = -70060,
624+
DSErrorPanoramaLicenseInvalid = -70060,
625625
/** -80000~-89999: Reserved error code. */
626626
/**-90000~-99999: DCP error code. */
627627
/** The resource path is not exist. */
628-
DSErrorCodeResourcePathNotExist = -90001,
628+
DSErrorResourcePathNotExist = -90001,
629629
/** Failed to load resource. */
630-
DSErrorCodeResourceLoadFailed = -90002,
630+
DSErrorResourceLoadFailed = -90002,
631631
/** The code specification is not found. */
632-
DSErrorCodeCodeSpecificationNotFound = -90003,
632+
DSErrorCodeSpecificationNotFound = -90003,
633633
/** The full code string is empty. */
634-
DSErrorCodeFullCodeEmpty = -90004,
634+
DSErrorFullCodeEmpty = -90004,
635635
/** Failed to preprocess the full code string */
636-
DSErrorCodeFullCodePreprocessFailed = -90005,
636+
DSErrorFullCodePreprocessFailed = -90005,
637637
/** The license for parsing South Africa Driver License is invalid. */
638-
DSErrorCodeZADLLicenseInvalid = -90006,
638+
DSErrorZADLLicenseInvalid = -90006,
639639
/** The license for parsing North America DL/ID is invalid. */
640-
DSErrorCodeAAMVADLIDLicenseInvalid = -90007,
640+
DSErrorAAMVADLIDLicenseInvalid = -90007,
641641
/** The license for parsing Aadhaar is invalid. */
642-
DSErrorCodeAADHAARLicenseInvalid = -90008,
642+
DSErrorAADHAARLicenseInvalid = -90008,
643643
/** The license for parsing Machine Readable Travel Documents is invalid. */
644-
DSErrorCodeMRTDLicenseInvalid = -90009,
644+
DSErrorMRTDLicenseInvalid = -90009,
645645
/** The license for parsing Vehicle Identification Number is invalid. */
646-
DSErrorCodeVINLicenseInvalid = -90010,
646+
DSErrorVINLicenseInvalid = -90010,
647647
/** The license for parsing customized code type is invalid. */
648-
DSErrorCodeCustomizedCodeTypeLicenseInvalid = -90011,
648+
DSErrorCustomizedCodeTypeLicenseInvalid = -90011,
649649
};
650650
```
651651
>

enums/core/error-code.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ public @interface EnumErrorCode
458458
```
459459
>
460460
```objc
461-
typedef NS_ERROR_ENUM(DSErrorDomain, DSErrorCode) {
461+
typedef NS_ERROR_ENUM(DSErrorDomain, DSError) {
462462
/**Successful. */
463463
DSErrorOK = 0,
464464
/**Unknown error. */
@@ -665,7 +665,7 @@ typedef NS_ERROR_ENUM(DSErrorDomain, DSErrorCode) {
665665
/** Failed to load resource. */
666666
DSErrorResourceLoadFailed = -90002,
667667
/** The code specification is not found. */
668-
DSErrorCodeSpecificationNotFound = -90003,
668+
DSErrorSpecificationNotFound = -90003,
669669
/** The full code string is empty. */
670670
DSErrorFullCodeEmpty = -90004,
671671
/** Failed to preprocess the full code string */

0 commit comments

Comments
 (0)