6 """Conventional exit codes, returned to shell."""
14 BEGIN_RUN_EXCEPTION = 0x10
15 BEGIN_RUN_FAILURE = 0x11
17 INI_ALG_EXCEPTION = 0x20
18 INI_ALG_FAILURE = 0x21
20 REINI_ALG_EXCEPTION = 0x30
21 REINI_ALG_FAILURE = 0x31
23 EXE_ALG_EXCEPTION = 0x40
24 EXE_ALG_FAILURE = 0x41
26 END_RUN_EXCEPTION = 0x50
27 END_RUN_FAILURE = 0x51
29 FIN_ALG_EXCEPTION = 0x60
30 FIN_ALG_FAILURE = 0x61
37 OPTIONS_UNKNOWN = 0x01
40 DATA_INFILE_ERROR = 0x04
41 DATA_OUTFILE_ERROR = 0x05
42 HISTO_OUTFILE_ERROR = 0x06
44 UNKNOWN_EXCEPTION = 0x08
45 CONFIGURATION_ERROR = 0x09
50 ALL_OK :
"successful run",
51 BEGIN_RUN_EXCEPTION :
"exception raised during beginRun()",
52 BEGIN_RUN_FAILURE :
"failure in beginRun()",
53 INI_ALG_EXCEPTION :
"exception raised during initialization",
54 INI_ALG_FAILURE :
"failure in initialization",
55 REINI_ALG_EXCEPTION :
"exception raised during an algorithm re-initialization",
56 REINI_ALG_FAILURE :
"failure in an algorithm re-initialization",
57 EXE_ALG_EXCEPTION :
"exception raised during an algorithm execute",
58 EXE_ALG_FAILURE :
"failure in an algorithm execute",
59 END_RUN_EXCEPTION :
"exception raised during endRun()",
60 END_RUN_FAILURE :
"failure in endRun()",
61 FIN_ALG_EXCEPTION :
"exception raised during finalization",
62 FIN_ALG_FAILURE :
"failure in finalization",
63 OPTIONS_UNKNOWN :
"unknown options supplied",
64 INCLUDE_ERROR :
"an error occurred when including a file",
65 IMPORT_ERROR :
"an error occurred when importing a file",
66 DATA_INFILE_ERROR :
"an error occurred when reading a data file",
67 DATA_OUTFILE_ERROR :
"an error occurred when writing a data file",
68 HISTO_OUTFILE_ERROR :
"an error occurred when writing a histogram file",
69 DATABASE_ERROR :
"a database error occurred",
70 UNKNOWN_EXCEPTION :
"an unknown exception occurred"