Krita Source Code Documentation
Loading...
Searching...
No Matches
ImportExportCodes Namespace Reference

Enumerations

enum  ErrorCodeID {
  InternalError , FileNotExist , NoAccessToRead , ErrorWhileReading ,
  FileFormatIncorrect , FormatFeaturesUnsupported , FormatColorSpaceUnsupported , CannotCreateFile ,
  NoAccessToWrite , ErrorWhileWriting , InsufficientMemory , FileFormatNotSupported ,
  Cancelled , Failure , Busy , OK
}
 

Enumeration Type Documentation

◆ ErrorCodeID

Enumerator
InternalError 
FileNotExist 
NoAccessToRead 
ErrorWhileReading 
FileFormatIncorrect 
FormatFeaturesUnsupported 
FormatColorSpaceUnsupported 
CannotCreateFile 
NoAccessToWrite 
ErrorWhileWriting 
InsufficientMemory 
FileFormatNotSupported 
Cancelled 
Failure 
Busy 
OK 

Definition at line 20 of file KisImportExportErrorCode.h.

21 {
22 InternalError, // error that shouldn't happen; only inside ASSERTS
23
24 // Reading
25 FileNotExist, // there is no file with that name in that location,
26 NoAccessToRead, // Krita has no reading access to the file,
27 ErrorWhileReading, // there was an error that occurred during reading,
28 FileFormatIncorrect, // file format cannot be parsed,
29 FormatFeaturesUnsupported, // file format can be parsed, but some features are unsupported,
30 FormatColorSpaceUnsupported, // file format can be parsed, but color space of the image is unsupported
31
32 // Writing
33 CannotCreateFile, // file cannot be created
34 NoAccessToWrite, // Krita has no writing access to the file
35 ErrorWhileWriting, // there was an error that occurred during writing (can be insufficient memory, too, just we don't know)
36 InsufficientMemory, // there is not enough memory left
37 FileFormatNotSupported, // this file format is not supported by Krita
38
39 // Both
40 Cancelled, // cancelled by a user
41
42 // Other
43 Failure, // unspecified error
44
45 // Could not save because a save operation was already going on
46 Busy,
47
48 // OK
49 OK, // everything went ok
50
51 };