00001
00004 #include "diag-entry.h"
00005 #include "./../include/yaz/diagsru_update.h"
00006 struct yaz_diag_entry yaz_diag_sru_update_tab[] = {
00007
00008 {1, "Invalid component: record rejected"},
00009 {2, "Invalid component: component rejected"},
00010 {3, "Invalid component: warning only"},
00011 {4, "Invalid component: default value applied"},
00012 {5, "Invalid component: data corrected by server"},
00013 {6, "Invalid repetition of component: record rejected"},
00014 {7, "Invalid repetition of component: component rejected"},
00015 {8, "Invalid repetition of component: warning only"},
00016 {9, "Missing mandatory element: record rejected"},
00017 {10, "Missing mandatory element: warning only"},
00018 {11, "Missing mandatory element: default value applied"},
00019 {12, "Invalid data structure: record rejected"},
00020 {13, "Invalid data structure: component rejected"},
00021 {14, "Invalid data structure: warning only"},
00022 {15, "Invalid data structure: default value applied"},
00023 {16, "Invalid data structure: data corrected by server"},
00024 {17, "Incorrect element length: record rejected"},
00025 {18, "Incorrect element length : component rejected"},
00026 {19, "Incorrect element length : warning only"},
00027 {20, "Incorrect element length : default value applied"},
00028 {21, "Incorrect element length : data corrected by server"},
00029 {22, "Invalid record identifier : record rejected"},
00030 {23, "Invalid record identifier : warning only"},
00031 {24, "Invalid record identifier : default applied"},
00032 {25, "Invalid record identifier : data corrected by server"},
00033 {26, "Invalid component identifier : record rejected"},
00034 {27, "Invalid component identifier: component rejected"},
00035 {28, "Invalid component identifier: warning only"},
00036 {29, "Invalid component identifier: data corrected by server"},
00037 {30, "Record schema unacceptable: record rejected"},
00038 {31, "Record schema unacceptable: component rejected"},
00039 {32, "Record schema unrecognised: warning only"},
00040 {33, "Record schema unacceptable: record converted"},
00041 {50, "Record not found (replacement or delete)"},
00042 {51, "Component not found (replacement or delete)"},
00043 {52, "Record protected or locked by another user"},
00044 {53, "Cannot delete or replace record or component, authorization failure"},
00045 {54, "Cannot delete or replace record or component without locking first"},
00046 {55, "Cannot process update, incorrect or invalid version"},
00047 {56, "Linked records exist, cannot delete record"},
00048 {57, "Record or component not found, replacement request processed as an insert"},
00049 {58, "Suspect duplicate: record or component insert rejected"},
00050 {59, "Suspect duplicate: warning only"},
00051 {60, "Incoming record matches with database record, records merged"},
00052 {61, "Unspecified database error"},
00053 {62, "Cannot process or store record, insufficent space"},
00054 {63, " 'record' is ignored, while Both 'recordIdentifier' and 'record' were included on a 'delete' action."},
00055 {64, "'recordIdentifier' is ignored, while Both 'recordIdentifier' and 'record' were included on a 'delete' action."},
00056 {65, "Not processed (replace or delete). Record identifier retrieved ore than one record"},
00057 {100, "Invalid action"},
00058 {0, 0}};
00059 const char *yaz_diag_sru_update_str(int code)
00060 {
00061 return yaz_diag_to_str(yaz_diag_sru_update_tab, code);
00062 }