enum Result;
Value | Description |
---|---|
ResultSuccess |
Success. |
ResultError |
General error. |
ResultErrorInvalidParam |
Invalid parameter. |
ResultErrorOverNumImages |
Exceeded limit for photo management. |
ResultErrorOverNumDcf |
Exceeded limit for photo DCF standard. |
ResultErrorFileOperationFailure |
File operation failure. |
ResultErrorInvalidFile |
Invalid file. |
ResultErrorTooLargeFile |
File size is too large. |
ResultErrorNotExistStorage |
SD card not inserted. |
ResultErrorWriteProtect |
SD card is write-protected. |
ResultErrorInsufficientStorageSpace |
Insufficient space on SD card. |
ResultErrorStopped |
Interrupted by the StopProcess function. |
ResultErrorPermissionDenied |
No permission. |
ResultErrorReadOnlyDbFile |
The management file is read-only. |
ResultErrorNotAvailableStorage |
The SD card is not usable. |
ResultSysErrorNeedRestore |
Management file need to be restored. (This is a system error.) |
Enumerated type for results.
System errors are errors used internally by ImageDb
.
These are not returned to the application so the application does not need to worry about them.
ResultError
An uncategorized general error.
Used for the inevitable errors that arise.
If this error is returned, in some cases it is because a more specific error has been returned from elsewhere.
ResultErrorInvalidParam
This error is generated when some argument or other parameter value is invalid.
There is some problem with the way the library is being used, so readjust the parameters so this error does not occur.
ResultErrorOverNumImages
Occurs when the attempt to register photos or other image data exceeds the number of images that ImageDb
can handle.
This error happens even during the course of regular use, so make sure that your program has no problems with this.
There is a management file that contains the maximum amount of dummy data in tools/ResultErrorOverNumImages sample
in the ImageDb package.
To use this file, save it in the Nintendo 3DS/Private
folder of the SD card.
ResultErrorOverNumDcf
Occurs when the DCF standard limit has been exceeded (all image names stored under DCIM are being used), so no more photos can be registered.
This error is common with SD cards, so make sure that your program has no problems with the error occurring.
ResultErrorFileOperationFailure
Unexpected file operation error, for example when opening, reading, or writing to a file.
Because this is a common error for SD cards, the program must be designed to continue after generating an error message.
ResultErrorInvalidFile
Occurs when a non-standard image or a corrupted image is loaded.
This error happens even during the course of regular use, so make sure that your program has no problems with this.
ResultErrorTooLargeFile
Occurs when the loaded image or the image to save is too big and fails.
This error happens even during the course of regular use, so make sure that your program has no problems with this.
ResultErrorNotExistStorage
Occurs when a request to the SD card is issued even though no SD card has been recognized.
This error happens even during the course of regular use, so make sure that your program has no problems with this.
ResultErrorWriteProtect
Occurs when writing is performed to a write-protected SD card.
This error happens even during the course of regular use, so make sure that your program has no problems with this.
ResultErrorInsufficientStorageSpace
Occurs when saving of photos and other image data fails because there is not enough space on the SD card.
This error happens even during the course of regular use, so make sure that your program has no problems with this.
ResultErrorStopped
Returned when processing is interrupted by functions like StopProcess
and StopCollect
.
This is an error intentionally triggered by the application, so your program must not have any problem with its occurrence.
ResultErrorPermissionDenied
Returned when processing fails due to a lack of permission.
It can happen when you try to delete ineligible photos.
This error happens even during the course of regular use, so make sure that your program has no problems with this.
ResultErrorReadOnlyDbFile
Returned when the management file has the read-only attribute. This error happens even during the course of regular use, so make sure that your program has no problems with this.
ResultErrorNotAvailableStorage
Generated when the card inserted in the SD card slot cannot be handled.
This can occur when a multimedia card is inserted in the slot.
This error happens even during the course of regular use, so make sure that your program has no problems with this.
CONFIDENTIAL