Details
GP_ERROR_CORRUPTED_DATA
#define GP_ERROR_CORRUPTED_DATA -102 /* 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.
GP_ERROR_PATH_NOT_ABSOLUTE
#define GP_ERROR_PATH_NOT_ABSOLUTE -111 |
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.
GP_ERROR_DIRECTORY_EXISTS
#define GP_ERROR_DIRECTORY_EXISTS -109 |
The specified directory already exists. This error is reported for example
when the user wants to create a directory that already exists.
GP_ERROR_FILE_EXISTS
#define GP_ERROR_FILE_EXISTS -103 |
An operation failed because a file existed. This error is reported for
example when the user tries to create a file that already exists.
GP_ERROR_FILE_NOT_FOUND
#define GP_ERROR_FILE_NOT_FOUND -108 |
The specified file could not be found. This error is reported when
the user wants to access a file that is non-existent.
GP_ERROR_DIRECTORY_NOT_FOUND
#define GP_ERROR_DIRECTORY_NOT_FOUND -107 |
The specified directory could not be found. This error is reported when
the user specified a directory that is non-existent.
GP_ERROR_MODEL_NOT_FOUND
#define GP_ERROR_MODEL_NOT_FOUND -105 |
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.
gp_result_as_string ()
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.