Initial commit
[yaz4j-moved-to-github.git] / dependencies / yaz_3.0.14 / src / diagsru_update.c
1 /** \file diagsru_update.c
2     \brief Diagnostics: Generated by csvtodiag.tcl from ./sru_update.csv */
3
4 #include "diag-entry.h"
5 #include "./../include/yaz/diagsru_update.h"
6 struct yaz_diag_entry yaz_diag_sru_update_tab[] = {
7
8 {1, "Invalid component:  record rejected"},
9 {2, "Invalid component:  component rejected"},
10 {3, "Invalid component:  warning only"},
11 {4, "Invalid component:  default value applied"},
12 {5, "Invalid component:  data corrected by server"},
13 {6, "Invalid repetition of component: record rejected"},
14 {7, "Invalid repetition of component: component rejected"},
15 {8, "Invalid repetition of component: warning only"},
16 {9, "Missing mandatory element: record rejected"},
17 {10, "Missing mandatory element: warning only"},
18 {11, "Missing mandatory element: default value applied"},
19 {12, "Invalid data structure: record rejected"},
20 {13, "Invalid data structure: component rejected"},
21 {14, "Invalid data structure: warning only"},
22 {15, "Invalid data structure: default value applied"},
23 {16, "Invalid data structure: data corrected by server"},
24 {17, "Incorrect element length: record rejected"},
25 {18, "Incorrect element length : component rejected"},
26 {19, "Incorrect element length : warning only"},
27 {20, "Incorrect element length : default value applied"},
28 {21, "Incorrect element length : data corrected by server"},
29 {22, "Invalid record identifier : record rejected"},
30 {23, "Invalid record identifier : warning only"},
31 {24, "Invalid record identifier : default applied"},
32 {25, "Invalid record identifier : data corrected by server"},
33 {26, "Invalid component identifier : record rejected"},
34 {27, "Invalid component identifier: component rejected"},
35 {28, "Invalid component identifier: warning only"},
36 {29, "Invalid component identifier: data corrected by server"},
37 {30, "Record schema unacceptable: record rejected"},
38 {31, "Record schema unacceptable: component rejected"},
39 {32, "Record schema unrecognised: warning only"},
40 {33, "Record schema unacceptable: record converted"},
41 {50, "Record not found (replacement or delete)"},
42 {51, "Component not found (replacement or delete)"},
43 {52, "Record protected or locked by another user"},
44 {53, "Cannot delete or replace record or component, authorization failure"},
45 {54, "Cannot delete or replace record or component without locking first"},
46 {55, "Cannot process update, incorrect or invalid version"},
47 {56, "Linked records exist, cannot delete record"},
48 {57, "Record or component not found, replacement request processed as an insert"},
49 {58, "Suspect duplicate: record or component insert rejected"},
50 {59, "Suspect duplicate: warning only"},
51 {60, "Incoming record matches with database record, records merged"},
52 {61, "Unspecified database error"},
53 {62, "Cannot process or store record, insufficent space"},
54 {63, " 'record' is ignored, while Both 'recordIdentifier' and 'record' were included on a 'delete' action."},
55 {64, "'recordIdentifier' is ignored, while Both 'recordIdentifier' and 'record' were included on a 'delete' action."},
56 {65, "Not processed (replace or delete). Record identifier retrieved ore than one record"},
57 {100, "Invalid action"},
58 {0, 0}};
59 const char *yaz_diag_sru_update_str(int code)
60 {
61     return yaz_diag_to_str(yaz_diag_sru_update_tab, code);
62 }