29namespace matrix_science {
44 static const err ERR_NO_ERROR = 0x0000;
45 static const err ERR_NOMEM = 0x0001;
46 static const err ERR_NOSUCHFILE = 0x0002;
47 static const err ERR_READINGFILE = 0x0003;
48 static const err ERR_QUERYOUTOFRANGE = 0x0004;
49 static const err ERR_MISSINGENTRY = 0x0005;
50 static const err ERR_PEPSUMMPEPGET = 0x0006;
51 static const err ERR_PEPTIDESTR = 0x0007;
52 static const err ERR_ACCINPEPTIDESTR = 0x0008;
53 static const err ERR_PROTSUMM = 0x0009;
54 static const err ERR_PROTSUMMPEP = 0x000A;
55 static const err ERR_ADDPEPTIDES = 0x000B;
56 static const err ERR_MISSINGHIT = 0x000C;
57 static const err ERR_MISSINGSECTION = 0x000D;
58 static const err ERR_MISSINGSECTIONEND = 0x000E;
59 static const err ERR_MALFORMED_ERR_TOL = 0x000F;
60 static const err ERR_NO_ERR_TOL_PARENT = 0x0010;
61 static const err ERR_NULL_ACC_PEP_SUM = 0x0011;
62 static const err ERR_NULL_ACC_PROT_SUM = 0x0012;
63 static const err ERR_DUPE_ACCESSION = 0x0013;
64 static const err ERR_UNASSIGNED_PROG = 0x0014;
65 static const err ERR_UNASSIGNED_RANGE = 0x0015;
66 static const err ERR_UNASSIGNED_UNK = 0x0016;
67 static const err ERR_NO_UNIGENE_FILE = 0x0017;
68 static const err ERR_DUPLICATE_KEY = 0x0018;
69 static const err ERR_OLDRESULTSFILE = 0x0019;
70 static const err ERR_MALFORMED_TAG = 0x001A;
71 static const err ERR_MALFORMED_DRANGE = 0x001B;
72 static const err ERR_INVALID_NUMQUERIES = 0x001C;
73 static const err ERR_MALFORMED_TERMS = 0x001D;
74 static const err ERR_INVALID_RESFILE = 0x001E;
75 static const err ERR_INVALID_PROTDB = 0x001F;
76 static const err ERR_UNIGENE_MULTIDB = 0x0020;
77 static const err ERR_INVALID_CACHE_DIR = 0x0021;
78 static const err ERR_FAIL_OPEN_DAT_FILE = 0x0022;
79 static const err ERR_MISSING_CDB_FILE = 0x0023;
80 static const err ERR_FAIL_MK_CACHE_DIR = 0x0024;
81 static const err ERR_FAIL_MK_CDB_FILE = 0x0025;
82 static const err ERR_FAIL_CLOSE_FILE = 0x0026;
83 static const err ERR_FAIL_CDB_INIT = 0x0027;
84 static const err ERR_INVALID_CDB_FILE = 0x0028;
85 static const err ERR_WRITE_CDB_FILE = 0x0029;
86 static const err ERR_CDB_TOO_LARGE = 0x002A;
87 static const err ERR_NEED_64_BIT = 0x002B;
88 static const err ERR_CDB_64_BIT_REMAKE = 0x002C;
89 static const err ERR_CDB_OLD_VER_RETRY = 0x002D;
90 static const err ERR_CDB_OLD_VER_NO_RETRY = 0x002E;
91 static const err ERR_CDB_INCOMPLETE_RETRY = 0x002F;
92 static const err ERR_CDB_INCOMPLETE_NO_RETRY = 0x0030;
93 static const err ERR_CDB_BEING_CREATED = 0x0031;
94 static const err ERR_CDB_FAIL_REMOVE = 0x0032;
95 static const err ERR_CDB_FAIL_LOCK = 0x0033;
96 static const err ERR_CDB_FAIL_UNLOCK = 0x0034;
97 static const err ERR_CDB_SOURCE_CHANGE_RETRY = 0x0035;
98 static const err ERR_CDB_SOURCE_CHANGE_NO_RETRY = 0x0036;
99 static const err ERR_MISSING_PERCOLATOR_FILE = 0x0037;
100 static const err ERR_CANNOT_APPEND_RESFILE = 0x0038;
101 static const err ERR_CANNOT_APPEND_RESFILE_NO_FNAMES = 0x0039;
102 static const err ERR_RESULTS_NOT_CREATED = 0x003A;
107 static const err ERR_MSP_FAILED_TO_OPEN_FILE = 0x0100;
108 static const err ERR_MSP_FAILED_TO_CLOSE_FILE = 0x0101;
109 static const err ERR_MSP_FAIL_STAT = 0x0102;
110 static const err ERR_MSP_GET_VOLUME_INFO = 0x0103;
111 static const err ERR_MSP_FILE_DOESNT_EXIST = 0x0104;
112 static const err ERR_MSP_FAIL_GET_PROCESS_AFFINITY = 0x0105;
113 static const err ERR_MSP_SYSMP_FAIL = 0x0106;
114 static const err ERR_MSP_FAIL_GET_SYSINFO = 0x0107;
115 static const err ERR_MSP_FAILED_TO_WRITE_FILE = 0x0108;
116 static const err ERR_MSP_FAIL_UTIME = 0x0109;
117 static const err ERR_MSP_FAILED_TO_READ_FILE = 0x010A;
120 static const err ERR_MSP_FAIL_HWLOC_INIT = 0x0150;
121 static const err ERR_MSP_FAIL_HWLOC_LOAD = 0x0151;
122 static const err ERR_MSP_BIND_INVALID_CPU = 0x0152;
123 static const err ERR_MSP_FAIL_PROCESSOR_BIND = 0x0153;
124 static const err ERR_MSP_FAIL_THREAD_BIND = 0x0154;
125 static const err ERR_MSP_INVALID_LOGICAL_CPU_NUM = 0x0155;
126 static const err ERR_MSP_INVALID_CPU_PACKAGE_NUM = 0x0156;
127 static const err ERR_MSP_INVALID_NUM_LICENSED = 0x0157;
130 static const err ERR_MSP_FRAGMENTATION_RULES = 0x0200;
133 static const err ERR_MSP_IN_MASSES_FILE = 0x0300;
134 static const err ERR_MSP_INVALID_MASS_IN_MASSES_FILE = 0x0301;
137 static const err ERR_MSP_DUPLICATE_MOD = 0x0400;
138 static const err ERR_MSP_RESIDUE_AND_TERMINUS_MOD = 0x0401;
139 static const err ERR_MSP_TOO_MANY_MODS_IN_MOD_FILE = 0x0402;
140 static const err ERR_MSP_NO_COMMAS_IN_MOD_NAME = 0x0403;
141 static const err ERR_MSP_IN_MODS_FILE = 0x0404;
142 static const err ERR_MSP_MISSING_DEFINITION_END = 0x0405;
143 static const err ERR_MSP_NO_SUCH_MOD = 0x0406;
146 static const err ERR_MSP_ENZYME_FILE_FORMAT = 0x0500;
147 static const err ERR_MSP_MISSING_ENZYME_TITLE = 0x0501;
148 static const err ERR_MSP_ENZYME_DEFINITION_PROBLEM = 0x0502;
149 static const err ERR_MSP_ENZYME_TOO_MANY_RULES = 0x0503;
152 static const err ERR_MSP_MISSING_MASCOT_DAT = 0x0601;
153 static const err ERR_MSP_DB_USES_MISSING_RULE = 0x0602;
154 static const err ERR_MSP_COMPILE_PARSE_RULE = 0x0603;
155 static const err ERR_MSP_NEED_1_EXP_IN_PARSE_RULE = 0x0604;
156 static const err ERR_MSP_IN_MASCOT_DAT_DB_SECT = 0x0605;
157 static const err ERR_MSP_IN_OPTIONS_SECTION = 0x0606;
158 static const err ERR_MSP_IN_CLUSTER_SECTION = 0x0607;
160 static const err ERR_MSP_CRON_TOO_MANY_JOBS = 0x0609;
161 static const err ERR_MSP_INVALID_PARSE_RULE = 0x060A;
162 static const err ERR_MSP_INVALID_PARSE_RULE_NO = 0x060B;
163 static const err ERR_MSP_RULE_NO_ALREADY_DEFINED = 0x060C;
164 static const err ERR_MSP_MISSING_QUOTE_IN_PARSE_RULE = 0x060D;
165 static const err ERR_MSP_PARSE_LEN_EXCEED = 0x060E;
166 static const err ERR_MSP_IN_TAXONOMY_SECTION = 0x060F;
167 static const err ERR_MSP_INCOMPATIBLE_TAX_RULES = 0x0610;
168 static const err ERR_MSP_MAX_PREFIX_REMOVES = 0x0611;
169 static const err ERR_MSP_MAX_SUFFIX_REMOVES = 0x0612;
170 static const err ERR_MSP_MAX_TAX_NO_BREAKS = 0x0613;
171 static const err ERR_MSP_CRON_INVALID_CHAR = 0x0614;
172 static const err ERR_MSP_CRON_INVALID_NUMBER = 0x0615;
173 static const err ERR_MSP_CRON_INVALID_STAR = 0x0616;
174 static const err ERR_MSP_CRON_NO_NUM_BEFORE_COMMA = 0x0617;
175 static const err ERR_MSP_CRON_NO_NUM_BEFORE_MINUS = 0x0618;
176 static const err ERR_MSP_INVALID_PROCESSOR_LINE = 0x0619;
177 static const err ERR_MSP_PROCESSOR_NOT_IN_SET = 0x061A;
178 static const err ERR_MSP_SPECIFY_UNAVAILABLE_PROCESSOR = 0x061B;
179 static const err ERR_MSP_TOO_MANY_PROCESSORS = 0x061C;
180 static const err ERR_MSP_TOO_MANY_TH_PROCESSORS = 0x061D;
181 static const err ERR_MSP_WWW_SECTION = 0x061E;
182 static const err ERR_MSP_DUP_TAXONOMYRULE = 0x061F;
183 static const err ERR_MSP_WRONG_ICAT_FILTER = 0x0620;
184 static const err ERR_MSP_EXEC_AFTER_SEARCH_INVALID = 0x0621;
185 static const err ERR_MSP_EXEC_AFTER_SEARCH_DEPENDS = 0x0622;
186 static const err ERR_MSP_EXEC_AFTER_SEARCH_LOGGING = 0x0623;
187 static const err ERR_MSP_REPORTBUILDERCOLARR_INVALID = 0x0624;
188 static const err ERR_MSP_UNEXPECTED_LINE_OUT_OF_SECT = 0x0625;
189 static const err ERR_MSP_MISSING_SECTION = 0x0626;
190 static const err ERR_MSP_NO_REGEX_MATCH = 0x0627;
191 static const err ERR_MSP_REGEX_ERROR = 0x0628;
192 static const err ERR_MSP_COLOURSCHEME_INVALID = 0x0629;
193 static const err ERR_MSP_PERCOLATOR_USE_RT_OBSOLETE = 0x0630;
196 static const err ERR_MSP_NO_LICENSE_FILE = 0x0700;
197 static const err ERR_MSP_LICENSE_DES_CHECKSUM = 0x0701;
198 static const err ERR_MSP_LICENSE_LINE_CHECKSUM = 0x0702;
199 static const err ERR_MSP_LICENSE_NOT_YET_AVAIL = 0x0703;
200 static const err ERR_MSP_LICENSE_EXPIRED = 0x0704;
201 static const err ERR_MSP_LICENSE_INTERNAL_CONFIG = 0x0705;
202 static const err ERR_MSP_LICENSE_LINE_INVALID = 0x0706;
204 static const err ERR_MSP_XML_SYSTEM_FAILED = 0x0801;
205 static const err ERR_MSP_XML_NO_ROOT_ELEMENT = 0x0802;
206 static const err ERR_MSP_XML_TABLE_NOTFOUND = 0x0803;
207 static const err ERR_MSP_XML_FIELD_NOTFOUND = 0x0804;
208 static const err ERR_MSP_XML_INVALID_FIELD_FORMAT = 0x0805;
209 static const err ERR_MSP_XML_LOCAL_SCHEMA_NOT_STORED = 0x0806;
210 static const err ERR_MSP_XML_ELEMENT_NOT_FOUND = 0x0807;
211 static const err ERR_MSP_XML_MEMORY_ERROR = 0x0808;
212 static const err ERR_MSP_XML_FAILEDLOAD = 0x0809;
213 static const err ERR_MSP_XML_FAILEDSAVE = 0x0810;
215 static const err ERR_MSP_HTTP_TRANSMISSION_FAILED = 0x0901;
216 static const err ERR_MSP_HTTP_INVALID_URL = 0x0902;
217 static const err ERR_MSP_MASCOT_NOT_RUNNING = 0x0903;
222 static const err ERR_MSP_CONFLICT_BETWEEN_MODS = 0x0A01;
223 static const err ERR_MSP_WRONG_MOD_VECTOR = 0x0A02;
224 static const err ERR_MSP_MOD_MUST_BE_VAR = 0x0A03;
225 static const err ERR_MSP_MALFORMED_PEPTIDE = 0x0A04;
226 static const err ERR_MSP_DOUBLE_CHARGE_NOT_ALLOWED = 0x0A05;
227 static const err ERR_MSP_NO_ENZYME_SET = 0x0A06;
228 static const err ERR_MSP_EMPTY_MOD = 0x0A07;
229 static const err ERR_MSP_LOOPLINKING_NOT_IMPLEMENTED = 0x0A08;
230 static const err ERR_MSP_CROSSLINKING_MULTI_PEPTIDE = 0x0A09;
231 static const err ERR_MSP_CROSSLINKING_MULTI_LINKS = 0x0A10;
232 static const err ERR_MSP_CROSSLINKING_INVALID_LINK = 0x0A11;
233 static const err ERR_MSP_CROSSLINKING_VARMOD_CONFLICT = 0x0A12;
234 static const err ERR_MSP_MISSING_ET_MOD = 0x0A13;
235 static const err ERR_MSP_MISSING_SL_MOD = 0x0A14;
236 static const err ERR_MSP_MISSING_MONOLINK_MOD = 0x0A15;
238 static const err ERR_MSP_TAXONOMY_NO_TITLE = 0x0B01;
239 static const err ERR_MSP_TAXONOMY_NO_COMMAS = 0x0B02;
240 static const err ERR_MSP_TAXONOMY_WRONG_LINE = 0x0B03;
241 static const err ERR_MSP_TAXONOMY_DEFINITION_END = 0x0B04;
242 static const err ERR_MSP_TAXONOMY_CONFLICT_PARENTS = 0x0B05;
243 static const err ERR_MSP_TAXONOMY_INVALID_NODE_FILE = 0x0B06;
244 static const err ERR_MSP_TAXONOMY_MISSING_NODE_FILE = 0x0B07;
247 static const err ERR_MSP_LEGACY_DATA_NOT_AVAILABLE = 0x0C01;
248 static const err ERR_MSP_LEGACY_DATA_WRONG_FORMAT = 0x0C02;
249 static const err ERR_MSP_LEGACY_DATA_SQL_ERROR = 0x0C03;
250 static const err ERR_MSP_LEGACY_DATA_READ_ERROR = 0x0C04;
254 static const err ERR_MSP_MSR_READING_FILE = 0x0D01;
257 static const err ERR_MSP_MSR_CREATING_FILE = 0x0E01;
258 static const err ERR_MSP_MSR_WRITING_FILE = 0x0E02;
261 static const err ERR_MSP_SECURITY_INVALID_SESSION_ID = 0x1000;
262 static const err ERR_MSP_SECURITY_NOT_ADMIN_SESSION = 0x1001;
263 static const err ERR_MSP_SECURITY_DUPE_USER_ID = 0x1002;
264 static const err ERR_MSP_SECURITY_DUPE_USER_NAME = 0x1003;
265 static const err ERR_MSP_SECURITY_BAD_USER_NAME = 0x1004;
266 static const err ERR_MSP_SECURITY_USERNAME_NOT_FOUND = 0x1005;
267 static const err ERR_MSP_SECURITY_USERID_NOT_FOUND = 0x1006;
268 static const err ERR_MSP_SECURITY_DUPE_GROUP_ID = 0x1007;
269 static const err ERR_MSP_SECURITY_DUPE_GROUP_NAME = 0x1008;
270 static const err ERR_MSP_SECURITY_BAD_GROUP_NAME = 0x1009;
271 static const err ERR_MSP_SECURITY_GROUPNAME_NOT_FOUND = 0x100A;
272 static const err ERR_MSP_SECURITY_GROUPID_NOT_FOUND = 0x100B;
273 static const err ERR_MSP_SECURITY_FAIL_LOAD_SEC = 0x100C;
274 static const err ERR_MSP_SECURITY_FAIL_LOAD_USER = 0x100D;
275 static const err ERR_MSP_SECURITY_FAIL_LOAD_GROUP = 0x100E;
276 static const err ERR_MSP_SECURITY_DEL_SPECIAL_GROUP = 0x100F;
277 static const err ERR_MSP_SECURITY_DEL_SPECIAL_USER = 0x1010;
278 static const err ERR_MSP_SECURITY_DISABLE_ADMIN = 0x1011;
279 static const err ERR_MSP_SECURITY_DEL_ADMIN_RIGHTS = 0x1012;
280 static const err ERR_MSP_SECURITY_DEL_ADMIN_FROM_GP = 0x1013;
281 static const err ERR_MSP_SECURITY_DUPE_GROUP_NAME_U = 0x1014;
282 static const err ERR_MSP_SECURITY_DUPE_USER_NAME_U = 0x1015;
283 static const err ERR_MSP_SECURITY_OLD_PW_INVALID = 0x1016;
284 static const err ERR_MSP_SECURITY_NO_GUEST_PWD = 0x1017;
285 static const err ERR_MSP_SECURITY_PASSWORD_TOO_SHORT = 0x1018;
286 static const err ERR_MSP_SECURITY_FAIL_SAVE_SEC = 0x1019;
287 static const err ERR_MSP_SECURITY_NO_RIGHTS_UPD_USR = 0x101A;
289 static const err ERR_MSP_SECURITY_INVALIDUSER = 0x1101;
290 static const err ERR_MSP_SECURITY_INVALIDPASSWORD = 0x1102;
291 static const err ERR_MSP_SECURITY_MISSINGSESSIONFILE = 0x1103;
292 static const err ERR_MSP_SECURITY_SAVESESSIONFILE = 0x1104;
293 static const err ERR_MSP_SECURITY_TIMEDOUT = 0x1105;
294 static const err ERR_MSP_SECURITY_DIFFERENTIPADDR = 0x1106;
295 static const err ERR_MSP_SECURITY_PASSWORDEXPIRED = 0x1107;
296 static const err ERR_MSP_SECURITY_NOTLOGGEDIN = 0x1108;
297 static const err ERR_MSP_SECURITY_INVALIDSESSION = 0x1109;
298 static const err ERR_MSP_SECURITY_NOSAVEPARAMS = 0x110A;
299 static const err ERR_MSP_SECURITY_SESSIONDESTROYED = 0x110B;
300 static const err ERR_MSP_SECURITY_NOCREATEGUEST = 0x110C;
301 static const err ERR_MSP_SECURITY_UPDATESESS = 0x110D;
302 static const err ERR_MSP_SECURITY_ACCOUNT_DISABLED = 0x110E;
303 static const err ERR_MSP_SECURITY_NOTNORMALUSER = 0x110F;
304 static const err ERR_MSP_SECURITY_SAMEPASSWORD = 0x1110;
305 static const err ERR_MSP_SECURITY_SPOOFATTEMPT1 = 0x1111;
306 static const err ERR_MSP_SECURITY_SPOOFATTEMPT2 = 0x1112;
307 static const err ERR_MSP_SECURITY_SPOOFATTEMPT3 = 0x1113;
308 static const err ERR_MSP_SECURITY_SPOOFATTEMPT4 = 0x1114;
309 static const err ERR_MSP_SECURITY_FAILGETINTEGRAURL = 0x1115;
310 static const err ERR_MSP_SECURITY_FAILGETINTEGRA = 0x1116;
311 static const err ERR_MSP_SECURITY_INTEGRACONNFORMAT = 0x1117;
312 static const err ERR_MSP_SECURITY_INTEGRAINVALIDPW = 0x1118;
313 static const err ERR_MSP_SECURITY_INTEGRAINVALIDCO = 0x1119;
314 static const err ERR_MSP_SECURITY_LOADSESSIONFILE = 0x111A;
315 static const err ERR_MSP_SECURITY_NOT_INTEGRA_USER = 0x111B;
316 static const err ERR_MSP_SECURITY_NOT_ENABLED = 0x111C;
317 static const err ERR_MSP_SECURITY_NO_INTEGRA_LOGIN = 0x111D;
318 static const err ERR_MSP_SESSION_UTIME_FAIL = 0x111E;
319 static const err ERR_MSP_SECURITY_CMDLINE_CGI = 0x111F;
323 static const err ERR_MSP_SECURITY_ADDUSER = 0x1200;
324 static const err ERR_MSP_SECURITY_DELUSER = 0x1201;
325 static const err ERR_MSP_SECURITY_UPDATEUSER = 0x1202;
326 static const err ERR_MSP_SECURITY_UPDATEPW = 0x1203;
327 static const err ERR_MSP_SECURITY_ADDGROUP = 0x1204;
328 static const err ERR_MSP_SECURITY_DELETEGROUP = 0x1205;
329 static const err ERR_MSP_SECURITY_UPDATEGROUP = 0x1206;
331 static const err ERR_MSP_SECURITY_GETALLGROUPIDS = 0x1300;
332 static const err ERR_MSP_SECURITY_GETGROUPOK = 0x1301;
333 static const err ERR_MSP_SECURITY_GETGROUPFAIL = 0x1302;
334 static const err ERR_MSP_SECURITY_GETUSEROK = 0x1303;
335 static const err ERR_MSP_SECURITY_GETUSERFAIL = 0x1304;
336 static const err ERR_MSP_SECURITY_GETUSERFROMIDOK = 0x1305;
337 static const err ERR_MSP_SECURITY_GETUSERFROMIDFAIL = 0x1306;
338 static const err ERR_MSP_SECURITY_GETALLUSERIDS = 0x1307;
339 static const err ERR_MSP_SECURITY_GETGROUPFROMIDOK = 0x1308;
340 static const err ERR_MSP_SECURITY_GETGROUPFROMIDFAIL = 0x1309;
341 static const err ERR_MSP_SECURITY_GETPERMTASKSOK = 0x130A;
342 static const err ERR_MSP_SECURITY_GETPERMTASKSFAIL = 0x130B;
343 static const err ERR_MSP_SECURITY_UPDATEALLSESSFILES = 0x130C;
344 static const err ERR_MSP_SECURITY_GETINTEGRAUSERS1 = 0x130D;
345 static const err ERR_MSP_SECURITY_GETINTEGRAUSERS2 = 0x130E;
346 static const err ERR_MSP_SECURITY_GETINTEGRAUSERS3 = 0x130F;
347 static const err ERR_MSP_SECURITY_VALIDATEINTEGRAPW1 = 0x1310;
348 static const err ERR_MSP_SECURITY_VALIDATEINTEGRAPW2 = 0x1311;
349 static const err ERR_MSP_SECURITY_VALIDATEINTEGRAPW3 = 0x1312;
350 static const err ERR_MSP_SECURITY_VALIDATEINTEGRACO1 = 0x1313;
351 static const err ERR_MSP_SECURITY_VALIDATEINTEGRACO2 = 0x1314;
353 static const err ERR_MSP_SECURITY_MSSESSIONCTOR = 0x1330;
354 static const err ERR_MSP_SECURITY_MSSESSCOOKIE = 0x1331;
355 static const err ERR_MSP_SECURITY_LOADINGSESS = 0x1332;
356 static const err ERR_MSP_SECURITY_MSSESSLOGIN = 0x1333;
357 static const err ERR_MSP_SECURITY_MSSESSINTEGRA = 0x1334;
358 static const err ERR_MSP_SECURITY_MSSESSRESULTSPERM = 0x1335;
360 static const err ERR_MSP_QUANT_FAILEDLOAD = 0x1400;
361 static const err ERR_MSP_QUANT_FAILEDSAVE = 0x1401;
363 static const err ERR_MSP_QUANT_HELPER_FAILEDINIT = 0x1410;
365 static const err ERR_MSP_QUANTITATION_FAILEDINIT = 0x1420;
366 static const err ERR_MSP_QUANTITATION_NOMETHOD = 0x1421;
367 static const err ERR_MSP_QUANTITATION_BADMETHOD = 0x1422;
368 static const err ERR_MSP_QUANTITATION_BADCOMPONENT = 0x1423;
370 static const err ERR_MSP_MS2QUANTITATION_FAILEDINIT = 0x1430;
371 static const err ERR_MSP_MS2QUANTITATION_NORM_NO_SUM = 0x1431;
372 static const err ERR_MSP_MS2QUANTITATION_NORM_UNIMP = 0x1432;
373 static const err ERR_MSP_MS2QUANTITATION_PROTWEIGH = 0x1433;
374 static const err ERR_MSP_MS2QUANTITATION_PROTR_UNIM = 0x1434;
375 static const err ERR_MSP_MS2QUANTITATION_COMPONENTS = 0x1435;
376 static const err ERR_MSP_MS2QUANTITATION_QUERY_SECS = 0x1436;
378 static const err ERR_MSP_CUSTQUANT_FAILEDINIT = 0x1450;
379 static const err ERR_MSP_CUSTQUANT_PROTR_UNIM = 0x1451;
381 static const err ERR_MSP_MS1QUANTITATION_HITREF_NEW = 0x1470;
382 static const err ERR_MSP_MS1QUANTITATION_HITREF_DROP = 0x1471;
383 static const err ERR_MSP_MS1QUANTITATION_FAILEDINIT = 0x1472;
384 static const err ERR_MSP_MS1QUANT_GET_COMBINED_LIMITS = 0x1473;
385 static const err ERR_MSP_MS1QUANT_RTOFFSET_DIFF_FRACT = 0x1474;
386 static const err ERR_MSP_MS1QUANT_TIME_ALIGN_INDEX = 0x1475;
387 static const err ERR_MSP_MS1QUANT_INVALID_PROJECT_ID = 0x1476;
388 static const err ERR_MSP_MS1QUANT_XML_LOAD_PROJECT_ID = 0x1477;
389 static const err ERR_MSP_MS1QUANT_XML_INVALID_BIN1 = 0x1478;
390 static const err ERR_MSP_MS1QUANT_XML_INVALID_BIN2 = 0x1479;
391 static const err ERR_MSP_MS1QUANT_XML_INVALID_RT = 0x147A;
392 static const err ERR_MSP_MS1QUANT_XML_SAX_STATE = 0x147B;
393 static const err ERR_MSP_MS1QUANT_XML_SAX_ELEMENT = 0x147C;
394 static const err ERR_MSP_MS1QUANT_XML_PARSE = 0x147D;
395 static const err ERR_MSP_MS1QUANT_NO_EST_WIDTH = 0x147E;
396 static const err ERR_MSP_MS1QUANT_CDB_BYTES = 0x147F;
397 static const err ERR_MSP_MS1QUANT_CDB_VERSION = 0x1480;
398 static const err ERR_MSP_MS1QUANT_CDB_MISSING_KEY = 0x1481;
399 static const err ERR_MSP_MS1QUANT_TIME_ALIGIN_CALCFRM = 0x1482;
401 static const err ERR_MSP_UMOD_FAILEDLOAD = 0x1500;
402 static const err ERR_MSP_UMOD_FAILEDSAVE = 0x1501;
404 static const err ERR_MSP_XMLSCHEMA_FAILEDLOAD = 0x1600;
405 static const err ERR_MSP_XMLSCHEMA_FAILEDSAVE = 0x1601;
407 static const err ERR_MSP_ZIP_ENDIAN = 0x1700;
408 static const err ERR_MSP_ZIP_OUTOFMEMORY = 0x1701;
409 static const err ERR_MSP_ZIP_BUFTOOSMALL = 0x1702;
410 static const err ERR_MSP_ZIP_INVALIDDATA = 0x1703;
411 static const err ERR_MSP_ZIP_UNKNOWN = 0x1704;
412 static const err ERR_MSP_ZIP_LENGTHDIFFERS = 0x1705;
413 static const err ERR_MSP_ZIP_UNCOMPRESSEDDATATOOLONG = 0x1706;
414 static const err ERR_MSP_ZIP_ZEROLENGTH = 0x1707;
415 static const err ERR_MSP_ZIP_VERSIONERROR = 0x1708;
416 static const err ERR_MSP_ZIP_NOTSTREAMING = 0x1709;
417 static const err ERR_MSP_ZIP_STREAMERROR = 0x1710;
418 static const err ERR_MSP_ZIP_COMPRESSEDDATATOOLONG = 0x1711;
419 static const err ERR_MSP_ZIP_INVALID_STREAMING_MODE = 0x1712;
422 static const err ERR_MSP_INST_INVALIDCPUINFO = 0x1800;
423 static const err ERR_MSP_INST_MISSINGDATABASE = 0x1801;
424 static const err ERR_MSP_INST_FAILADDPARSERULE = 0x1802;
425 static const err ERR_MSP_INST_CANTGETHOSTNAME = 0x1803;
428 static const err ERR_MSP_HTTP_WEBAUTHERROR = 0x1901;
429 static const err ERR_MSP_HTTP_VERSIONERROR = 0x1902;
430 static const err ERR_MSP_HTTP_MISSINGLOGINERROR = 0x1903;
431 static const err ERR_MSP_HTTP_MISSINGLOGININFO = 0x1904;
432 static const err ERR_MSP_HTTP_LOGINPARSERERROR = 0x1905;
433 static const err ERR_MSP_HTTP_LOGINPARSERERRORINT = 0x1906;
434 static const err ERR_MSP_HTTP_LOGINSERVERERROR = 0x1907;
435 static const err ERR_MSP_HTTP_LOGINSERVERERRORINT = 0x1908;
436 static const err ERR_MSP_HTTP_LOGINERROR = 0x1909;
437 static const err ERR_MSP_HTTP_LOGINERRORINT = 0x190A;
438 static const err ERR_MSP_HTTP_CHANGEPASSWORDDISABLED = 0x190B;
439 static const err ERR_MSP_HTTP_OPENOUTPUTFILEFAILED = 0x190C;
440 static const err ERR_MSP_HTTP_WRITEOUTPUTFILEFAILED = 0x190D;
441 static const err ERR_MSP_HTTP_RELOGINFAILED = 0x190E;
443 static const err ERR_MSP_HTTP_SETPROXYFAILED = 0x1A01;
444 static const err ERR_MSP_HTTP_SETPROXYUSERNAMEFAILED = 0x1A02;
445 static const err ERR_MSP_HTTP_SETPROXYPASSWORDFAILED = 0x1A03;
446 static const err ERR_MSP_HTTP_SETHTTPUSERNAMEFAILED = 0x1A04;
447 static const err ERR_MSP_HTTP_SETHTTPPASSWORDFAILED = 0x1A05;
448 static const err ERR_MSP_HTTP_SETREDIRECTFAILED = 0x1A06;
449 static const err ERR_MSP_HTTP_NORESPONSE = 0x1A08;
450 static const err ERR_MSP_HTTP_QUERYSTATUSFAILED = 0x1A0A;
451 static const err ERR_MSP_HTTP_OPENSESSIONFAILED = 0x1A0B;
452 static const err ERR_MSP_HTTP_OPENCONNECTIONFAILED = 0x1A0C;
453 static const err ERR_MSP_HTTP_OPENREQUESTFAILED = 0x1A0D;
454 static const err ERR_MSP_HTTP_CLOSESESSIONFAILED = 0x1A0B;
455 static const err ERR_MSP_HTTP_CLOSECONNECTIONFAILED = 0x1A0C;
456 static const err ERR_MSP_HTTP_CLOSEREQUESTFAILED = 0x1A0D;
457 static const err ERR_MSP_HTTP_ABORTEDBYUSER = 0x1A0E;
458 static const err ERR_MSP_HTTP_MAXCONECTIONSFAILED = 0x1A0F;
459 static const err ERR_MSP_HTTP_MAXCONECTIONS10FAILED = 0x1A10;
460 static const err ERR_MSP_HTTP_READRESPONSEFAILED = 0x1A11;
461 static const err ERR_MSP_HTTP_SENDREQUESTFAILED = 0x1A12;
462 static const err ERR_MSP_HTTP_QUERYDATAFAILED = 0x1A13;
463 static const err ERR_MSP_HTTP_READDATAFAILED = 0x1A14;
464 static const err ERR_MSP_HTTP_GETPROXYFAILED = 0x1A15;
465 static const err ERR_MSP_HTTP_BADHTTPSTATUS = 0x1A16;
466 static const err ERR_MSP_HTTP_ERROR = 0x1A17;
467 static const err ERR_MSP_HTTP_SESSIONALREADYOPEN = 0x1A18;
468 static const err ERR_MSP_HTTP_GETRESULTSFILENAME = 0x1A1A;
469 static const err ERR_MSP_HTTP_DOWNLOADFAILED = 0x1A1B;
470 static const err ERR_MSP_HTTP_HEADERFAILED = 0x1A1C;
471 static const err ERR_MSP_HTTP_GETSEARCHSTAGE = 0x1A1D;
474 static const err ERR_MSP_CACHE_OPENFAILED = 0x1B01;
475 static const err ERR_MSP_CACHE_READFAILED = 0x1B02;
476 static const err ERR_MSP_CACHE_INVALIDFORMAT = 0x1B03;
477 static const err ERR_MSP_CACHE_SIGNATUREINVALID = 0x1B04;
478 static const err ERR_MSP_CACHE_DATAOFFSETINVALID = 0x1B05;
479 static const err ERR_MSP_CACHE_FILESEEKFAILED = 0x1B06;
480 static const err ERR_MSP_CACHE_INVALIDVERSION = 0x1B07;
481 static const err ERR_MSP_CACHE_INVALIDSTREAMID = 0x1B08;
482 static const err ERR_MSP_CACHE_INVALIDSTREAMPOSITION = 0x1B09;
483 static const err ERR_MSP_CACHE_DUPLICATESTREAMID = 0x1B0A;
484 static const err ERR_MSP_CACHE_WRITEFAILED = 0x1B0B;
485 static const err ERR_MSP_CACHE_STREAMNOTFOUND = 0x1B0C;
486 static const err ERR_MSP_CACHE_WRITETRUNCATED = 0x1B0D;
487 static const err ERR_MSP_CACHE_MODIFYREADONLYMODE = 0x1B0E;
488 static const err ERR_MSP_CACHE_MODIFYCLOSED = 0x1B0F;
489 static const err ERR_MSP_CACHE_UNINITIALISEDSTREAM = 0x1B10;
490 static const err ERR_MSP_CACHE_SLREF_UPDATE = 0x1B11;
491 static const err ERR_MSP_CACHE_PROT_NUMPEPTIDES_RELOAD = 0x1B12;
493 static const err ERR_MSP_HTTP_XMLUPLOADFAILED = 0x1C01;
495 static const err ERR_MSP_NIST_MSP_INVALID_LINE = 0x1D01;
496 static const err ERR_MSP_NIST_MSP_MISSING_PARAMETER = 0x1D02;
497 static const err ERR_MSP_NIST_MSP_NO_SPECTRA = 0x1D03;
498 static const err ERR_MSP_NIST_MSP_NO_CREATE_CDB = 0x1D04;
499 static const err ERR_MSP_NIST_MSP_INCONSISTENT_MODS = 0x1D05;
500 static const err ERR_MSP_NIST_FAILED_TO_LOAD_ENTRY = 0x1D06;
501 static const err ERR_MSP_NIST_SAVE_ZERO_SPECTRA = 0x1D07;
502 static const err ERR_MSP_NIST_NO_PEAKS_IN_SPECTRUM = 0x1D08;
503 static const err ERR_MSP_NIST_CANNOT_ANNOTATE_PEAK = 0x1D09;
504 static const err ERR_MSP_NIST_INDEX_OUT_OF_RANGE = 0x1D0A;
505 static const err ERR_MSP_NIST_NO_PRECURSOR_MZ_VALUE = 0x1D0B;
506 static const err ERR_MSP_NIST_MODIFICATION_NOT_FOUND = 0x1D0C;
508 static const err ERR_MSP_XHUNTER_WRONG_FORMAT = 0x1D20;
511 static const err ERR_RESFILE_INVALID_DB_TYPE = 0x1E01;
512 static const err ERR_RESFILE_LINKED_SITES = 0x1E02;
513 static const err ERR_RESFILE_LOOPLINKED_SITES = 0x1E03;
514 static const err ERR_RESFILE_MISSING_QEXP = 0x1E04;
515 static const err ERR_RESFILE_FUTURE_VERSION = 0x1E05;
518 static const err ERR_MSP_SL_SCORING_MODEL_FAIL = 0x1F01;
519 static const err ERR_MSP_SL_SCORING_MODEL_WARN = 0x1F02;
520 static const err ERR_MSP_TARGET_FDR_FAILED_FOR_ET = 0x1F03;
521 static const err ERR_MSP_CLOSEST_FDR_FOR_ET = 0x1F04;
522 static const err ERR_MSP_DIFFERENT_1ST_PASS_THR_ET = 0x1F05;
523 static const err ERR_MSP_TARGET_FDR_FAILED_FOR_FIRST_PASS = 0x1F06;
524 static const err ERR_MSP_CLOSEST_FDR_FOR_FIRST_PASS = 0x1F07;
526 static const err ERR_MSP_QUANT_CDB_MATCH_STREAM = 0x2000;
527 static const err ERR_MSP_QUANT_CDB_MISSING_KEY = 0x2001;
528 static const err ERR_MSP_QUANT_MISSING_COMPONENT = 0x2002;
529 static const err ERR_MSP_QUANT_FAIL_LOAD_PEPTIDE = 0x2003;
530 static const err ERR_MSP_QUANT_EMPTY_REF_ACCESSION = 0x2004;
531 static const err ERR_MSP_QUANT_ACCESSION_NOT_FOUND = 0x2005;
532 static const err ERR_MSP_QUANT_INVALID_REF_AMOUNT = 0x2006;
533 static const err ERR_MSP_QUANT_FAIL_LOAD_MATCH = 0x2007;
535 static const err ERR_MSP_CROSSLINKING_FAILEDLOAD = 0x2100;
536 static const err ERR_MSP_CROSSLINKING_FAILEDSAVE = 0x2101;
539 static const err ERR_MSP_IMPUTATION_FAIL = 0x2200;
540 static const err ERR_MSP_IMPUTATION_WARNING = 0x2201;
541 static const err ERR_MSP_IMPUTATION_DEBUG1 = 0x2202;
542 static const err ERR_MSP_IMPUTATION_DEBUG2 = 0x2203;
543 static const err ERR_MSP_IMPUTATION_DEBUG3 = 0x2204;
544 static const err ERR_MSP_IMPUTATION_CONSTRUCTOR = 0x2205;
545 static const err ERR_MSP_IMPUTATION_VARIABLE = 0x2206;
546 static const err ERR_MSP_IMPUTATION_NO_RATIOS_PROTEIN = 0x2207;
547 static const err ERR_MSP_IMPUTATION_NO_RATIOS_PEPTIDE = 0x2208;
548 static const err ERR_MSP_IMPUTATION_NO_TIMES = 0x2209;
549 static const err ERR_MSP_IMPUTATION_EMPTY_DATA = 0x220A;
550 static const err ERR_MSP_IMPUTATION_KNN_BLANK_ROW = 0x220B;
551 static const err ERR_MSP_IMPUTATION_FIXED_PROGRESS = 0x220C;
552 static const err ERR_MSP_IMPUTATION_AVERAGE_PROGRESS = 0x220D;
553 static const err ERR_MSP_IMPUTATION_KNN_PROGRESS = 0x220E;
554 static const err ERR_MSP_IMPUTATION_MISSFOR_PROGRESS = 0x220F;
556 static const err ERR_MSP_LASTONE = 0xFFFF;
561 bool combineRepeats =
true,
568 bool isValid()
const;
575 void vsetError(
const ms_errs::err errorNum, va_list argptr,
const char * srcFileName =
"",
const int srcFileLineNum = -1);
579 void setError(
const std::string sessionID,
584 void setError(
const int errorNum,
585 const char* strBuffer,
587 const int srcLineNumber = -1,
588 const char * srcFileName =
"");
591 void setErrorPlusErrno(
const ms_errs::err errorNum, ...);
594 bool anyIoErrors(FILE *f)
const;
597 void appendError(
const ms_errs::err errorNum,
const int numRepeats,
const std::string & errorString);
601 static std::string systemErrorText(
unsigned winErrNum);
610 void appendErrors(
const ms_errs& src);
613 int getNumberOfErrors()
const;
616 void clearAllErrors();
619 int getErrorNumber(
const int num = -1)
const;
622 int getLastError()
const;
625 std::string getErrorString(
const int num)
const;
628 std::string getLastErrorString()
const;
631 msg_sev getErrorSeverity(
const int num = -1)
const;
634 int getErrorRepeats(
const int num = -1)
const;
637 void setLoggingFile(
const std::string filename,
const msg_sev level);
640 std::string getLoggingFileName()
const;
643 virtual msg_sev getLoggingLevel()
const;
646 void setLoggingLevel(
const msg_sev level);
649 bool getCombineRepeats()
const;
652 void setCombineRepeats(
const bool flag);
655 bool willMessageBeLogged(
const ms_errs::err errorNum)
const;
658 void forwardToParentInstance(
ms_errs * parent);
670 virtual void _setError(
const int errorNum,
671 const char* strBuffer,
673 const std::string & sessionID =
"",
674 const int userID = -1,
675 const int srcLineNumber = -1,
676 const char * srcFileName =
"");
679 std::vector<int> errorNumbers_;
680 std::vector<std::string>errorStrings_;
681 std::vector<msg_sev> errorSeverities_;
682 std::vector<int> errorRepeats_;
683 std::string logfileName_;
685 bool combineRepeats_;
689 std::set<ms_errs *> objectsUsingMyData_;
711 void clearAllErrors();
714 bool isValid()
const;
717 std::string getLastErrorString()
const;
720 int getLastError()
const;
723 const ms_errs* getErrorHandler()
const;
725#if !defined(SWIGJAVA) && !defined(SWIGCSHARP)
731 void appendError(
const ms_errs::err errorNum,
const int numRepeats,
const std::string & errorString);
This class is used as a base class for several Mascot Parser classes.
Definition: ms_errors.hpp:696
All errors are collected in an instance of this class.
Definition: ms_errors.hpp:37
msg_num_t err
Definitions for error numbers.
Definition: ms_errors.hpp:41
Definitions for logging messages.
Definition: ms_log.hpp:39
int msg_num_t
Typedef for log and error message numbers.
Definition: ms_log.hpp:127
msg_sev
Message severity levels.
Definition: ms_log.hpp:47
Level_e
Logging severity levels.
Definition: ms_logging.hpp:51
Source_e
Logging event source.
Definition: ms_logging.hpp:65