IOS: master data and disk space

Does anyone know what happens if you try to save kernel data, but there is less disk space left?

I assume the save operation throws some NSError? How would you say that it was a disk error, and not some other error while burning a disk?

+5
source share
3 answers

After several hours of trying to fill the disk, I found that the error I received was:

NSSQLiteErrorDomain = 13;
NSUnderlyingException = "error during SQL execution : database or disk is full";

Getting this error is quite difficult:

  • iOS devices claim to be full before they actually are. I managed to squeeze an extra 206 MB onto the iPod, which claimed to have 0 bytes.
  • , , .
+3

, -, CoreData API . NSCoreDataErrorDomain NSCocoaErrorDomain SQLite, .

+2

You can find out about the error by querying the NSError instance and analyzing the result for the error area. One of these domains probably has the error code you are looking for:

// Predefined domain for errors from most AppKit and Foundation APIs.
FOUNDATION_EXPORT NSString *const NSCocoaErrorDomain;

// Other predefined domains; value of "code" will correspond to preexisting values in these domains.
FOUNDATION_EXPORT NSString *const NSPOSIXErrorDomain;
FOUNDATION_EXPORT NSString *const NSOSStatusErrorDomain;
FOUNDATION_EXPORT NSString *const NSMachErrorDomain;
0
source

All Articles