![]() | ![]() | ![]() | GPhoto2 API Reference Manual | ![]() |
---|
#define GP_ERROR_CORRUPTED_DATA #define GP_ERROR_PATH_NOT_ABSOLUTE #define GP_ERROR_DIRECTORY_EXISTS #define GP_ERROR_FILE_EXISTS #define GP_ERROR_FILE_NOT_FOUND #define GP_ERROR_DIRECTORY_NOT_FOUND #define GP_ERROR_MODEL_NOT_FOUND const char* gp_result_as_string (int result);
#define GP_ERROR_CORRUPTED_DATA
Data is corrupt. This error is reported by camera drivers if corrupted data has been received that can not be automatically handled. Normally, drivers will do everything possible to automatically recover from this error.
#define GP_ERROR_PATH_NOT_ABSOLUTE
The specified path is not absolute. This error is reported when the user specifies paths that are not absolute, i.e. paths like "path/to/directory". As a rule of thumb, in gphoto2, there is nothing like relative paths.
#define GP_ERROR_DIRECTORY_EXISTS
The specified directory already exists. This error is reported for example when the user wants to create a directory that already exists.
#define GP_ERROR_FILE_EXISTS
An operation failed because a file existed. This error is reported for example when the user tries to create a file that already exists.
#define GP_ERROR_FILE_NOT_FOUND
The specified file could not be found. This error is reported when the user wants to access a file that is non-existent.
#define GP_ERROR_DIRECTORY_NOT_FOUND
The specified directory could not be found. This error is reported when the user specified a directory that is non-existent.
#define GP_ERROR_MODEL_NOT_FOUND
The specified model could not be found. This error is reported when the user specified a model that does not seem to be supported by any driver.
const char* gp_result_as_string (int result);
Translates a gphoto2 error code into a human readable string. If the error occurred in combination with a camera, gp_camera_get_result_as_string should be used instead.
result : | a gphoto2 error code |
Returns : | A string representation of a gphoto2 error code |
<<< GPhoto2 Utilities | CameraLibrary >>> |