Skip to content
Snippets Groups Projects
Commit a8039a48 authored by florian's avatar florian
Browse files

ENH: Add status code for key errors

parent 4796d431
No related branches found
No related tags found
1 merge request!13ENH: Add datatypes and value classes to Extern C interface
Pipeline #12219 passed
Pipeline: caosdb-cppinttest

#12220

    This commit is part of merge request !13. Comments created here will be created in the context of that merge request.
    ......@@ -61,6 +61,7 @@ enum StatusCode {
    FILE_DOES_NOT_EXIST_LOCALLY = 34,
    FILE_UPLOAD_ERROR = 35,
    FILE_DOWNLOAD_ERROR = 36,
    ENUM_MAPPING_ERROR = 37,
    OTHER_CLIENT_ERROR = 9999,
    };
    ......
    ......@@ -102,6 +102,8 @@ auto get_status_description(int code) -> const std::string & {
    {StatusCode::EXTERN_C_ASSIGNMENT_ERROR,
    "You tried to assign a new object to the wrapped void pointer. You have "
    "to delete the old pointee first."},
    {StatusCode::ENUM_MAPPING_ERROR,
    "The role, importance, or datatype you specified does not exist."},
    {StatusCode::OTHER_CLIENT_ERROR,
    "This is code is reserved to errors raised by other clients wrapping the "
    "C++ client (or its Extern C interface). This should never occur when "
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment