Matrix Science header
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes

ms_errs Class Reference
[Error handling and logging]

All errors are collected in an instance of this class. More...

#include <ms_errors.hpp>

Inheritance diagram for ms_errs:
Inheritance graph
[legend]
Collaboration diagram for ms_errs:
Collaboration graph
[legend]

List of all members.

Public Types

typedef msg_num_t err
 Definitions for error numbers.
typedef int msg_num_t
 Typedef for log and error message numbers.
enum  msg_sev {
  sev_fatal = 1,
  sev_warn = 2,
  sev_info = 3,
  sev_debug1 = 4,
  sev_debug2 = 5,
  sev_debug3 = 6
}
 

Message severity levels.

More...

Public Member Functions

 ms_errs (msg_sev loglevel=sev_warn, bool combineRepeats=true, ms_loggingmonitor::Source_e api=ms_loggingmonitor::SRC_MSPARSER)
 Constructor.
virtual ~ms_errs ()
 Destructor.
void addToCatalog (const msg_catalog_t catalog[], size_t numEntries, ms_loggingmonitor::Source_e src, errorOrLogMessages_e errorOrLogMessages)
 Add messages to the fast lookup map.
void appendErrors (const ms_errs &src)
 Copies all errors from another instance and appends them at the end of own list.
void clearAllErrors ()
 Remove all errors from the current list of errors.
void forwardToParentInstance (ms_errs *parent)
 Enable all messages from one object to be forwarded to another.
bool getCombineRepeats () const
 Get the flag for whether to merge repeated error messages.
int getErrorNumber (const int num=-1) const
 Return a specific error number or ERR_NO_ERROR.
int getErrorRepeats (const int num=-1) const
 Returns a number of times the specified error has been repeated.
msg_sev getErrorSeverity (const int num=-1) const
 Returns the severity of the specified error, warning, information or debug message.
std::string getErrorString (const int num) const
 Returns a specific error as a string.
int getLastError () const
 Return the last error number or ERR_NO_ERROR if no errors.
std::string getLastErrorString () const
 Return the last error number or an empty string.
std::string getLoggingFileName () const
 Return the name of the logging file.
virtual msg_sev getLoggingLevel () const
 Get the logging level.
ms_loggingmonitor::Source_e getMessageSource (const ms_log::msg_num_t msgNum) const
 Return the component (library/application) that generated the specified log message.
int getNumberOfErrors () const
 Return the number of errors since the last call to clearAllErrors().
bool isValid () const
 Returns TRUE if no errors occurred, FALSE otherwise.
void setAPI (ms_loggingmonitor::Source_e api)
 Sets the source API for the messages.
void setCombineRepeats (const bool flag)
 Set the flag for whether to merge repeated error messages.
void setLoggingFile (const std::string filename, const msg_sev level)
 Set the logging file.
void setLoggingLevel (const msg_sev level)
 Set the logging level.
bool willMessageBeLogged (const msg_num_t msgNum) const
 Check to see if the message will be logged to a file or recorded anywhere.
bool willMessageBeLogged (const ms_errs::err errorNum) const
 Check to see if the message will be logged to a file or recorded anywhere.

Static Public Member Functions

static ms_errs::msg_sev convertFromLogLevel (ms_loggingmonitor::Level_e logLevel)
 Convert the ms_loggingmonitor level to an ms_errs severity.
static ms_loggingmonitor::Level_e convertToLogLevel (ms_errs::msg_sev severity)
 Convert the ms_errs severity level to a ms_loggingmonitor level.

Static Public Attributes

static const err ERR_ACCINPEPTIDESTR = 0x0008
 [F] Could not parse an item for a given accession in the peptide section.
static const err ERR_ADDPEPTIDES = 0x000B
 [F] Failed to add peptides when creating the peptide summary.
static const err ERR_CANNOT_APPEND_RESFILE = 0x0038
 [F] The file %s cannot be appended to %s because %s values are different.
static const err ERR_CANNOT_APPEND_RESFILE_NO_FNAMES = 0x0039
 [F] The file cannot be appended because %s values are different.
static const err ERR_CDB_64_BIT_REMAKE = 0x002C
 [W] Re-creating %s. Was too large for 32 bit, but may succeed with 64 bit.
static const err ERR_CDB_BEING_CREATED = 0x0031
 [W] Cache file %% being created by another task. Continuing without cache.
static const err ERR_CDB_FAIL_LOCK = 0x0033
 [W] Failed to lock cache file %s. Error code: %d.
static const err ERR_CDB_FAIL_REMOVE = 0x0032
 [W] Failed to remove old cache file %s - error %s. Continuing without cache.
static const err ERR_CDB_FAIL_UNLOCK = 0x0034
 [W] Failed to unlock cache file %s. Error code: %d.
static const err ERR_CDB_INCOMPLETE_NO_RETRY = 0x0030
 [W] Cache file %s was not complete. Continuing without cache.
static const err ERR_CDB_INCOMPLETE_RETRY = 0x002F
 [W] Cache file %s was not complete. Re-creating the cache file.
static const err ERR_CDB_OLD_VER_NO_RETRY = 0x002E
 [W] Cache file %s is an old version. Continuing without cache.
static const err ERR_CDB_OLD_VER_RETRY = 0x002D
 [W] Cache file %s is an old version. Creating new cache file.
static const err ERR_CDB_SOURCE_CHANGE_NO_RETRY = 0x0036
 [W] %s changed. %s (was %s), %s bytes (was %s). Continuing without cache.
static const err ERR_CDB_SOURCE_CHANGE_RETRY = 0x0035
 [W] %s changed. %s (was %s), %s bytes (was %s). Re-creating the cache file.
static const err ERR_CDB_TOO_LARGE = 0x002A
 [W] Cannot use cache file (s) which exceeded max size of s. Try deleting the cache file and retrying.
static const err ERR_DUPE_ACCESSION = 0x0013
 [W] A possible duplicate accession string has been found. Possible problem in database.
static const err ERR_DUPLICATE_KEY = 0x0018
 [W] Duplicate entries with the same key in the named section.
static const err ERR_FAIL_CDB_INIT = 0x0027
 [W] Failed to initialise cache file (%s). Error code %d.
static const err ERR_FAIL_CLOSE_FILE = 0x0026
 [W] Failed to close file.
static const err ERR_FAIL_MK_CACHE_DIR = 0x0024
 [F] Failed to create cache directory for cache files.
static const err ERR_FAIL_MK_CDB_FILE = 0x0025
 [W] Failed to create an cache file.
static const err ERR_FAIL_OPEN_DAT_FILE = 0x0022
 [F] Failed to open the results file for reading.
static const err ERR_INVALID_CACHE_DIR = 0x0021
 [F] Must specify a cache directory if using CDB cache files.
static const err ERR_INVALID_CDB_FILE = 0x0028
 [W] Value in cdb cache file (%s) is corrupt: %s.
static const err ERR_INVALID_NUMQUERIES = 0x001C
 [W] Invalid number of queries in results file has been corrected.
static const err ERR_INVALID_PROTDB = 0x001F
 [W] Invalid h1_db-string format. Expecting an integer number.
static const err ERR_INVALID_RESFILE = 0x001E
 [F] Invalid results file format -- missing or corrupt headers.
static const err ERR_MALFORMED_DRANGE = 0x001B
 [W] Expecting a line in format q1_p2_drange=0,256.
static const err ERR_MALFORMED_ERR_TOL = 0x000F
 [W] Expecting a line of format q1_p2_et_mods=0.984020,0.000000,Citrullination.
static const err ERR_MALFORMED_TAG = 0x001A
 [W] Expecting a line in format q1_p2_tag=1:3:5:6,2:4:12:6,....
static const err ERR_MALFORMED_TERMS = 0x001D
 [W] Expecting a line in format q1_p2_terms=A,B:-,I:....
static const err ERR_MISSING_CDB_FILE = 0x0023
 [W] Cache file is missing or cannot be opened.
static const err ERR_MISSING_PERCOLATOR_FILE = 0x0037
 [F] Percolator file %s is missing. Cannot continue.
static const err ERR_MISSINGENTRY = 0x0005
 [F] Set if there is no qexp value in the file.
static const err ERR_MISSINGHIT = 0x000C
 [F] Missing hit in the summary section.
static const err ERR_MISSINGSECTION = 0x000D
 [F] Complete missing section in the file.
static const err ERR_MISSINGSECTIONEND = 0x000E
 [F] Missing end of section in the file.
static const err ERR_MSP_BIND_INVALID_CPU = 0x0152
 [W] Warning: Failed to bind invalid processor number: d.
static const err ERR_MSP_CACHE_DATAOFFSETINVALID = 0x1B05
 [F] Cache file meta data offset is invalid. 'filename'.
static const err ERR_MSP_CACHE_DUPLICATESTREAMID = 0x1B0A
 [F] Duplicate stream id detected: 'filename'.
static const err ERR_MSP_CACHE_FILESEEKFAILED = 0x1B06
 [F] Failed to open cache file: [code] 'filename'.
static const err ERR_MSP_CACHE_INVALIDFORMAT = 0x1B03
 [F] File format no longer supported. 'filename'.
static const err ERR_MSP_CACHE_INVALIDSTREAMID = 0x1B08
 [F] Stream ID is invalid: [id] 'filename'.
static const err ERR_MSP_CACHE_INVALIDSTREAMPOSITION = 0x1B09
 [F] Stream position is invalid: [position] 'filename'.
static const err ERR_MSP_CACHE_INVALIDVERSION = 0x1B07
 [F] File version is invalid: [version] 'filename'.
static const err ERR_MSP_CACHE_MODIFYCLOSED = 0x1B0F
 [F] Attempted to modify cache file while closed: 'filename'.
static const err ERR_MSP_CACHE_MODIFYREADONLYMODE = 0x1B0E
 [F] Attempted to modify cache file opened for read-only mode: 'filename'.
static const err ERR_MSP_CACHE_OPENFAILED = 0x1B01
 [F] Failed to open cache file: [code] 'filename'.
static const err ERR_MSP_CACHE_PROT_NUMPEPTIDES_RELOAD = 0x1B12
 [W] Protein "[accession]" expected [num] peptides, but read [num] from the cache file
static const err ERR_MSP_CACHE_READFAILED = 0x1B02
 [F] Failed to read cache file: [code] 'filename'.
static const err ERR_MSP_CACHE_SIGNATUREINVALID = 0x1B04
 [F] Cache file signature is invalid. 'filename'.
static const err ERR_MSP_CACHE_SLREF_UPDATE = 0x1B11
 [W] Cache file for spectral library search was created by Parser 2.6.0, but the treatment of reference accessions changed in Parser 2.6.1. Re-creating the cache file.
static const err ERR_MSP_CACHE_STREAMNOTFOUND = 0x1B0C
 [F] Failed to find stream in cache file: [streamID] 'filename'.
static const err ERR_MSP_CACHE_UNINITIALISEDSTREAM = 0x1B10
 [F] Attempted to access uninitialised stream.
static const err ERR_MSP_CACHE_WRITEFAILED = 0x1B0B
 [F] Failed to write cache file: [code] 'filename'.
static const err ERR_MSP_CACHE_WRITETRUNCATED = 0x1B0D
 [F] Write to cache file was truncated: 'filename'.
static const err ERR_MSP_CLOSEST_FDR_FOR_ET = 0x1F04
 [W] Target FDR s g%% could not be reached for error tolerant matches. Using closest s FDR g%% with minProbability = g.
static const err ERR_MSP_CLOSEST_FDR_FOR_FIRST_PASS = 0x1F07
 [W] Target FDR s g%% could not be reached. Using closest s FDR g%% with minProbability = g.
static const err ERR_MSP_COLOURSCHEME_INVALID = 0x0629
 [W] Colour scheme must be a comma-separated list of key=value pairs where keys and values have a specified format: s
static const err ERR_MSP_COMPILE_PARSE_RULE = 0x0603
 [W] Error while compiling a parse rule with regex.
static const err ERR_MSP_CONFLICT_BETWEEN_MODS = 0x0A01
 [F] A conflict between two or more modifications detected.
static const err ERR_MSP_CRON_INVALID_CHAR = 0x0614
 [W] Invalid character in Cron section.
static const err ERR_MSP_CRON_INVALID_NUMBER = 0x0615
 [W] Invalid number in Cron section.
static const err ERR_MSP_CRON_INVALID_STAR = 0x0616
 [W] Invalid star-character in Cron section.
static const err ERR_MSP_CRON_NO_NUM_BEFORE_COMMA = 0x0617
 [W] Expecting number before comma (,) in Cron section.
static const err ERR_MSP_CRON_NO_NUM_BEFORE_MINUS = 0x0618
 [W] Expecting number before dash (-) in Cron section.
static const err ERR_MSP_CRON_TOO_MANY_JOBS = 0x0609
 [W] Too many cron jobs.
static const err ERR_MSP_CROSSLINKING_FAILEDLOAD = 0x2100
 [W] Failed to load crosslinking.xml file.
static const err ERR_MSP_CROSSLINKING_FAILEDSAVE = 0x2101
 [W] Failed to save crosslinking.xml file.
static const err ERR_MSP_CROSSLINKING_INVALID_LINK = 0x0A11
 [F] Invalid link between peptides (link from = d, link to = d, site from = d, site to = d).
static const err ERR_MSP_CROSSLINKING_MULTI_LINKS = 0x0A10
 [F] Fragmenting with d links between peptides is not implemented.
static const err ERR_MSP_CROSSLINKING_MULTI_PEPTIDE = 0x0A09
 [F] Fragmenting of d linked peptides is not implemented.
static const err ERR_MSP_CROSSLINKING_VARMOD_CONFLICT = 0x0A12
 [F] Linker site contains a variable modification (peptide = s, position = d).
static const err ERR_MSP_CUSTQUANT_FAILEDINIT = 0x1450
 [E] Failed to initialise ms_customquantitation: %s .
static const err ERR_MSP_CUSTQUANT_PROTR_UNIM = 0x1451
 [W] Protein ratio type %s is not implemented; resetting to median.
static const err ERR_MSP_DB_USES_MISSING_RULE = 0x0602
 [W] A database uses non-existent rule.
static const err ERR_MSP_DIFFERENT_1ST_PASS_THR_ET = 0x1F05
 [W] Significance threshold has been changed from the original target value used to select proteins for the second pass search. Original first pass threshold = g, current threshold = g.
static const err ERR_MSP_DOUBLE_CHARGE_NOT_ALLOWED = 0x0A05
 [F] Double charged ions are not allowed on this series.
static const err ERR_MSP_DUP_TAXONOMYRULE = 0x061F
 [W] A taxonomy rule with duplicate number has been encountered.
static const err ERR_MSP_DUPLICATE_MOD = 0x0400
 [F] Duplicate modification names in mod_file.
static const err ERR_MSP_EMPTY_MOD = 0x0A07
 [F] A modification is missing or incomplete (perhaps it was not found in the configuration files).
static const err ERR_MSP_ENZYME_DEFINITION_PROBLEM = 0x0502
 [F] Invalid enzyme definition.
static const err ERR_MSP_ENZYME_FILE_FORMAT = 0x0500
 [F] Error in enzymes file.
static const err ERR_MSP_ENZYME_TOO_MANY_RULES = 0x0503
 [F] Too many cleavage rules for enzyme.
static const err ERR_MSP_EXEC_AFTER_SEARCH_DEPENDS = 0x0622
 [W] ExecAfterSearch has waitfor %d, but no %d command.
static const err ERR_MSP_EXEC_AFTER_SEARCH_INVALID = 0x0621
 [W] ExecAfterSearch must start with waitforX, where 0 <= X <= 10.
static const err ERR_MSP_EXEC_AFTER_SEARCH_LOGGING = 0x0623
 [W] ExecAfterSearch has an invalid logging level (should be 0..3).
static const err ERR_MSP_FAIL_GET_PROCESS_AFFINITY = 0x0105
 [F] Failed to find information about number of processors available: s.
static const err ERR_MSP_FAIL_GET_SYSINFO = 0x0107
 [F] Failed to obtain system information.
static const err ERR_MSP_FAIL_HWLOC_INIT = 0x0150
 [F] Failed to determine details about processors. (Call to hwloc_topology_init failed).
static const err ERR_MSP_FAIL_HWLOC_LOAD = 0x0151
 [F] Failed to determine details about processors. (Call to hwloc_topology_load failed).
static const err ERR_MSP_FAIL_PROCESSOR_BIND = 0x0153
 [W] Warning: Failed to bind process to set of processors (s). Return d, errno d.
static const err ERR_MSP_FAIL_STAT = 0x0102
 [W] OS-specific API-function stat() failed.
static const err ERR_MSP_FAIL_THREAD_BIND = 0x0154
 [W] Warning: Failed to bind thread d to processor d. Return d, errno d.
static const err ERR_MSP_FAIL_UTIME = 0x0109
 [W] Failed calling function utime() on file '%s'.
static const err ERR_MSP_FAILED_TO_CLOSE_FILE = 0x0101
 [W] Can happen everywhere.
static const err ERR_MSP_FAILED_TO_OPEN_FILE = 0x0100
 [F] Error when opening file.
static const err ERR_MSP_FAILED_TO_WRITE_FILE = 0x0108
 [F] Failed to write to file '%s' (file not open or disk full).
static const err ERR_MSP_FILE_DOESNT_EXIST = 0x0104
 [F] Cannot open file because it doesn't exist.
static const err ERR_MSP_FRAGMENTATION_RULES = 0x0200
 [F] Error when parsing fragmentation_rules file.
static const err ERR_MSP_GET_VOLUME_INFO = 0x0103
 [W] Failed to get volume information.
static const err ERR_MSP_HTTP_ABORTEDBYUSER = 0x1A0E
 [F] HTTP request aborted by user.
static const err ERR_MSP_HTTP_BADHTTPSTATUS = 0x1A16
 [F] HTTP status is [httpCode] 'httpText'.
static const err ERR_MSP_HTTP_CHANGEPASSWORDDISABLED = 0x190B
 [F] Change password failed: security is disabled.
static const err ERR_MSP_HTTP_CLOSECONNECTIONFAILED = 0x1A0C
 [F] Failed to close HTTP connection [code] 'text'.
static const err ERR_MSP_HTTP_CLOSEREQUESTFAILED = 0x1A0D
 [F] Failed to close HTTP request [code] 'text'.
static const err ERR_MSP_HTTP_CLOSESESSIONFAILED = 0x1A0B
 [F] Failed to close HTTP session [code] 'text'.
static const err ERR_MSP_HTTP_DOWNLOADFAILED = 0x1A1B
 [W] Unable to complete download of [s] to the local file [s] due to the following error: [s]. Check network and proxy settings or the local file permissions and try again.";
static const err ERR_MSP_HTTP_ERROR = 0x1A17
 [F] 'httpText'.
static const err ERR_MSP_HTTP_GETPROXYFAILED = 0x1A15
 [F] Failed to get HTTP proxy
static const err ERR_MSP_HTTP_GETRESULTSFILENAME = 0x1A1A
 [W] The http call client.pl?result_file_name&task_id=[taskID] returned [text]
static const err ERR_MSP_HTTP_HEADERFAILED = 0x1A1C
 [W] Unable to access [s] due to the following error: [s]. Check network and proxy settings and try again.
static const err ERR_MSP_HTTP_INVALID_URL = 0x0902
 [F] Invalid web-address.
static const err ERR_MSP_HTTP_LOGINERROR = 0x1909
 [F] Mascot server login.pl=[command] error: [code].
static const err ERR_MSP_HTTP_LOGINERRORINT = 0x190A
 [F] Mascot server login.pl=[command(param)] error: [code].
static const err ERR_MSP_HTTP_LOGINPARSERERROR = 0x1905
 [F] Mascot server login.pl=[command] parser error: [code].
static const err ERR_MSP_HTTP_LOGINPARSERERRORINT = 0x1906
 [F] Mascot server login.pl=[command(param)] parser error: [code].
static const err ERR_MSP_HTTP_LOGINSERVERERROR = 0x1907
 [F] Mascot server login.pl=[command] server error.
static const err ERR_MSP_HTTP_LOGINSERVERERRORINT = 0x1908
 [F] Mascot server login.pl=[command(param)] server error.
static const err ERR_MSP_HTTP_MAXCONECTIONS10FAILED = 0x1A10
 [W] Failed to set maximum connections per 1.0 server
static const err ERR_MSP_HTTP_MAXCONECTIONSFAILED = 0x1A0F
 [W] Failed to set maximum connections per server
static const err ERR_MSP_HTTP_MISSINGLOGINERROR = 0x1903
 [F] Mascot server login.pl is not present.
static const err ERR_MSP_HTTP_MISSINGLOGININFO = 0x1904
 [I] Mascot server login.pl is not present; security is disabled.
static const err ERR_MSP_HTTP_NORESPONSE = 0x1A08
 [F] Failed to receive HTTP response
static const err ERR_MSP_HTTP_OPENCONNECTIONFAILED = 0x1A0C
 [F] Failed to open HTTP connection
static const err ERR_MSP_HTTP_OPENOUTPUTFILEFAILED = 0x190C
 [F] Failed to open file for writing: [code] 'text'.
static const err ERR_MSP_HTTP_OPENREQUESTFAILED = 0x1A0D
 [F] Failed to open HTTP request
static const err ERR_MSP_HTTP_OPENSESSIONFAILED = 0x1A0B
 [F] Failed to open HTTP session
static const err ERR_MSP_HTTP_QUERYDATAFAILED = 0x1A13
 [F] Failed to query data status
static const err ERR_MSP_HTTP_QUERYSTATUSFAILED = 0x1A0A
 [F] Failed to query HTTP status
static const err ERR_MSP_HTTP_READDATAFAILED = 0x1A14
 [F] Failed to read data
static const err ERR_MSP_HTTP_READRESPONSEFAILED = 0x1A11
 [F] Failed to read HTTP response: [code] 'text'.
static const err ERR_MSP_HTTP_RELOGINFAILED = 0x190E
 [F] Failed to relogin to the Mascot server: [code] '[text]'.
static const err ERR_MSP_HTTP_SENDREQUESTFAILED = 0x1A12
 [F] Failed to send HTTP request
static const err ERR_MSP_HTTP_SESSIONALREADYOPEN = 0x1A18
 [F] A session is already open.
static const err ERR_MSP_HTTP_SETHTTPPASSWORDFAILED = 0x1A05
 [F] Failed to set HTTP password
static const err ERR_MSP_HTTP_SETHTTPUSERNAMEFAILED = 0x1A04
 [F] Failed to set HTTP username
static const err ERR_MSP_HTTP_SETPROXYFAILED = 0x1A01
 [F] Failed to set HTTP proxy
static const err ERR_MSP_HTTP_SETPROXYPASSWORDFAILED = 0x1A03
 [F] Failed to set HTTP proxy password
static const err ERR_MSP_HTTP_SETPROXYUSERNAMEFAILED = 0x1A02
 [F] Failed to set HTTP proxy username
static const err ERR_MSP_HTTP_SETREDIRECTFAILED = 0x1A06
 [F] Failed to set redirect policy
static const err ERR_MSP_HTTP_TRANSMISSION_FAILED = 0x0901
 [F] Http-transmission failed.
static const err ERR_MSP_HTTP_VERSIONERROR = 0x1902
 [F] Mascot version error: s.
static const err ERR_MSP_HTTP_WEBAUTHERROR = 0x1901
 [F] Mascot login error: could not determine if web authentication is enabled.
static const err ERR_MSP_HTTP_WRITEOUTPUTFILEFAILED = 0x190D
 [F] Failed to write to file: [code].
static const err ERR_MSP_HTTP_XMLUPLOADFAILED = 0x1C01
 [F] Failed to upload XML data: 'text'.
static const err ERR_MSP_IN_CLUSTER_SECTION = 0x0607
 [W] Error in CLUSTER section.
static const err ERR_MSP_IN_MASCOT_DAT_DB_SECT = 0x0605
 [W] Error in Databases section.
static const err ERR_MSP_IN_MASSES_FILE = 0x0300
 [F] Error when parsing "masses" file.
static const err ERR_MSP_IN_MODS_FILE = 0x0404
 [F] Error in mod file.
static const err ERR_MSP_IN_OPTIONS_SECTION = 0x0606
 [W] Error in OPTIONS section.
static const err ERR_MSP_IN_TAXONOMY_SECTION = 0x060F
 [W] Error in Taxonomy section.
static const err ERR_MSP_INCOMPATIBLE_TAX_RULES = 0x0610
 [W] Incompatible taxonomy rules.
static const err ERR_MSP_INST_CANTGETHOSTNAME = 0x1803
 [F] Failed to determine the hostname.
static const err ERR_MSP_INST_FAILADDPARSERULE = 0x1802
 [F] Failed to added parse rule required for SwissProt - too many rules already in mascot.dat?
static const err ERR_MSP_INST_INVALIDCPUINFO = 0x1800
 [W] Failed to get CPU information. Assuming single core and no hyper-threading.
static const err ERR_MSP_INST_MISSINGDATABASE = 0x1801
 [W] No entry for s found in not.mascot.dat.
static const err ERR_MSP_INVALID_CPU_PACKAGE_NUM = 0x0156
 [W] Warning: Request for information about invalid cpu package number: d at line: d.
static const err ERR_MSP_INVALID_LOGICAL_CPU_NUM = 0x0155
 [W] Warning: Request for information about invalid logical cpu number: d at line: d.
static const err ERR_MSP_INVALID_MASS_IN_MASSES_FILE = 0x0301
 [F] Invalid mass in "masses" file.
static const err ERR_MSP_INVALID_NUM_LICENSED = 0x0157
 [W] Warning: Request for number of CPUs to run on returns 0 because number licesed is d.
static const err ERR_MSP_INVALID_PARSE_RULE = 0x060A
 [W] Invalid parsing rule.
static const err ERR_MSP_INVALID_PARSE_RULE_NO = 0x060B
 [W] Parsing rule with invalid number.
static const err ERR_MSP_INVALID_PROCESSOR_LINE = 0x0619
 [W] Invalid line in mascot.dat.
static const err ERR_MSP_LICENSE_DES_CHECKSUM = 0x0701
 [F] Check sum in the license file is invalid.
static const err ERR_MSP_LICENSE_EXPIRED = 0x0704
 [F] The license has already expired.
static const err ERR_MSP_LICENSE_INTERNAL_CONFIG = 0x0705
 [F] Internal configuration error when reading a license file.
static const err ERR_MSP_LICENSE_LINE_CHECKSUM = 0x0702
 [F] Check sum in the license file is invalid.
static const err ERR_MSP_LICENSE_LINE_INVALID = 0x0706
 [F] Line [line number] of the license file is corrupt or this is not a license file.
static const err ERR_MSP_LICENSE_NOT_YET_AVAIL = 0x0703
 [F] Start date has not come yet.
static const err ERR_MSP_LOOPLINKING_NOT_IMPLEMENTED = 0x0A08
 [F] Fragmenting of looplinked peptides is not implemented.
static const err ERR_MSP_MALFORMED_PEPTIDE = 0x0A04
 [F] Empty or inconsistent peptide: s
static const err ERR_MSP_MASCOT_NOT_RUNNING = 0x0903
 [F] The Mascot service is not running. Unable to retrieve configuration file.
static const err ERR_MSP_MAX_PREFIX_REMOVES = 0x0611
 [W] Maximum number of prefixes is exceeded in Taxonomy section.
static const err ERR_MSP_MAX_SUFFIX_REMOVES = 0x0612
 [W] Maximum number of suffices is exceeded in Taxonomy section.
static const err ERR_MSP_MAX_TAX_NO_BREAKS = 0x0613
 [W] Maximum number of breaks is exceeded in Taxonomy section.
static const err ERR_MSP_MISSING_DEFINITION_END = 0x0405
 [F] Missing end of modification definition.
static const err ERR_MSP_MISSING_ENZYME_TITLE = 0x0501
 [F] Non-comment line encountered while searching for a title.
static const err ERR_MSP_MISSING_ET_MOD = 0x0A13
 [F] Error tolerant modification lookup failed: s
static const err ERR_MSP_MISSING_MASCOT_DAT = 0x0601
 [F] Missing mascot.dat file.
static const err ERR_MSP_MISSING_MONOLINK_MOD = 0x0A15
 [F] Monolink modification lookup failed: s
static const err ERR_MSP_MISSING_QUOTE_IN_PARSE_RULE = 0x060D
 [W] Missing quote character in a parse rule.
static const err ERR_MSP_MISSING_SECTION = 0x0626
 [W] There is no \'s\' section in the file: s
static const err ERR_MSP_MISSING_SL_MOD = 0x0A14
 [F] Spectral library modification lookup failed: s
static const err ERR_MSP_MOD_MUST_BE_VAR = 0x0A03
 [F] This modification can only be variable.
static const err ERR_MSP_MS1QUANTITATION_FAILEDINIT = 0x1472
 [E] Failed to initialise ms_ms1quantitation: %s
static const err ERR_MSP_MS1QUANTITATION_HITREF_DROP = 0x1471
 [W] Protein hit not found for protein [accession] at reference [oldhit.member]
static const err ERR_MSP_MS1QUANTITATION_HITREF_NEW = 0x1470
 [D2] Protein hit reference has changed for protein [accession] from [oldhit.member] to [newhit.member]
static const err ERR_MSP_MS2QUANTITATION_COMPONENTS = 0x1435
 [W] Different number of raw and corrected MS2 quantitation component intensities for q:d, p:%
static const err ERR_MSP_MS2QUANTITATION_FAILEDINIT = 0x1430
 [E] Failed to initialise ms_ms2quantitation: %s
static const err ERR_MSP_MS2QUANTITATION_NORM_NO_SUM = 0x1431
 [W] Sum normalisation is only implemented in Reporter (current protocol is %s); ignoring normalisation type
static const err ERR_MSP_MS2QUANTITATION_NORM_UNIMP = 0x1432
 [W] Unknown normalisation type %s; ignoring
static const err ERR_MSP_MS2QUANTITATION_PROTR_UNIM = 0x1434
 [W] Protein ratio type %s is not implemented; resetting to median
static const err ERR_MSP_MS2QUANTITATION_PROTWEIGH = 0x1433
 [W] Protein ratio type 'Summed intensities' is only implemented in Reporter (current protocol is %s); resetting to median
static const err ERR_MSP_MS2QUANTITATION_QUERY_SECS = 0x1436
 [W] Cannot provide quantitation information because there is no ms-ms data in this file
static const err ERR_MSP_NEED_1_EXP_IN_PARSE_RULE = 0x0604
 [W] Only one subexpression is allowed per parse rule.
static const err ERR_MSP_NIST_CANNOT_ANNOTATE_PEAK = 0x1D09
 [W] Ion series '[text]' is not valid in NIST format and cannot be used to annotate peaks
static const err ERR_MSP_NIST_FAILED_TO_LOAD_ENTRY = 0x1D06
 [F] Failed to load entry number [text] from [file]. Error [text]
static const err ERR_MSP_NIST_INDEX_OUT_OF_RANGE = 0x1D0A
 [F] Requesting an invalid spectrum number (d) in the msp file: 's' which has d entries
static const err ERR_MSP_NIST_MODIFICATION_NOT_FOUND = 0x1D0C
 [W] The spectral library file contains one or more references to modification: [name] which are not present in unimod. Consider adding to the library_mod_aliases file if appropriate.
static const err ERR_MSP_NIST_MSP_INCONSISTENT_MODS = 0x1D05
 [W] The msp file: 'filename' has an inconsistent mods entry: [text]
static const err ERR_MSP_NIST_MSP_INVALID_LINE = 0x1D01
 [W] The msp file: 'filename' has an unexpected line: 'line'
static const err ERR_MSP_NIST_MSP_MISSING_PARAMETER = 0x1D02
 [W] Missing 'key' in msp file: 'filename'.
static const err ERR_MSP_NIST_MSP_NO_CREATE_CDB = 0x1D04
 [W] Cannot create index file: for msp file: because . Will continue without index
static const err ERR_MSP_NIST_MSP_NO_SPECTRA = 0x1D03
 [F] 'filename' doesn't appear to be an msp file: no lines starting with Name: or no precursor m/z values specified
static const err ERR_MSP_NIST_NO_PEAKS_IN_SPECTRUM = 0x1D08
 [W] The msp file: '[file]' contains a spectrum with no peaks. First line is: '[text]'
static const err ERR_MSP_NIST_NO_PRECURSOR_MZ_VALUE = 0x1D0B
 [W] The spectral library file: '[file]' contains a spectrum with no precursor m/z value. First line for spectrum is: '[text]'
static const err ERR_MSP_NIST_SAVE_ZERO_SPECTRA = 0x1D07
 [W] Calling ms_spectral_lib_file::saveAs([file]), with start=[value] and end=[value], so file not saved
static const err ERR_MSP_NO_COMMAS_IN_MOD_NAME = 0x0403
 [F] Comma is not allowed in mod name.
static const err ERR_MSP_NO_ENZYME_SET = 0x0A06
 [F] Cannot iterate peptides without enzyme specificity.
static const err ERR_MSP_NO_LICENSE_FILE = 0x0700
 [F] License file cannot be found or invalid.
static const err ERR_MSP_NO_REGEX_MATCH = 0x0627
 [W] Could not find description / accession number in s using rule: s
static const err ERR_MSP_NO_SUCH_MOD = 0x0406
 [F] Cannot find a modification.
static const err ERR_MSP_PARSE_LEN_EXCEED = 0x060E
 [W] Parse rule length exceeds the limit.
static const err ERR_MSP_PROCESSOR_NOT_IN_SET = 0x061A
 [W] Processor specified is not in the ProcessorSet.
static const err ERR_MSP_QUANT_ACCESSION_NOT_FOUND = 0x2005
 [W] Passed accession value [accession] is not present in the search results. The Average reference protein will not be updated
static const err ERR_MSP_QUANT_CDB_MATCH_STREAM = 0x2000
 [F] Failed to load the quantitation match stream, or failed on bytes available check. Cache file name: [text], cdb file name: [text], key: [text]"
static const err ERR_MSP_QUANT_CDB_MISSING_KEY = 0x2001
 [F] No data from cdb for key. Cdb file name: [text], key: [text]
static const err ERR_MSP_QUANT_EMPTY_REF_ACCESSION = 0x2004
 [W] Passed accession value is empty. The Average reference protein will not be updated
static const err ERR_MSP_QUANT_FAIL_LOAD_MATCH = 0x2007
 [W] Quantitation error: failed to load match [value]
static const err ERR_MSP_QUANT_FAIL_LOAD_PEPTIDE = 0x2003
 [F] Failed to load peptide at index [number]
static const err ERR_MSP_QUANT_FAILEDLOAD = 0x1400
 [W] Failed to load quantitation configuration file.
static const err ERR_MSP_QUANT_FAILEDSAVE = 0x1401
 [W] Failed to save quantitation configuration file.
static const err ERR_MSP_QUANT_HELPER_FAILEDINIT = 0x1410
 [E] Failed to initialise ms_quant_helper: %s
static const err ERR_MSP_QUANT_INVALID_REF_AMOUNT = 0x2006
 [W] The passed reference amount value '[value]' is invalid. The reference amount will be set to the default of 1
static const err ERR_MSP_QUANT_MISSING_COMPONENT = 0x2002
 [W] Component number [number] is missing from match [number]
static const err ERR_MSP_QUANTITATION_BADCOMPONENT = 0x1423
 [W] The component name 's' does not exist in the quantitation mehod
static const err ERR_MSP_QUANTITATION_BADMETHOD = 0x1422
 [W] The quantitation method protocol s is not supported for function s
static const err ERR_MSP_QUANTITATION_FAILEDINIT = 0x1420
 [E] Failed to initialise ms_quantitation: %s
static const err ERR_MSP_QUANTITATION_NOMETHOD = 0x1421
 [W] No quantitation method is specified in the results file
static const err ERR_MSP_REGEX_ERROR = 0x0628
 [W] Error s finding description / accession number using rule: s
static const err ERR_MSP_REPORTBUILDERCOLARR_INVALID = 0x0624
 [W] ReportBuilderColumnArrangement must be of the form Name:[columns] where [columns] is a comma-separated string of column names.
static const err ERR_MSP_RESIDUE_AND_TERMINUS_MOD = 0x0401
 [F] Bad mod combination.
static const err ERR_MSP_RULE_NO_ALREADY_DEFINED = 0x060C
 [W] Parsing rule has been defined twice.
static const err ERR_MSP_SECURITY_ACCOUNT_DISABLED = 0x110E
 [F] Cannot login, your account (%s) has been disabled.
static const err ERR_MSP_SECURITY_ADDGROUP = 0x1204
 [I] Add group: name=%s, id=%d.
static const err ERR_MSP_SECURITY_ADDUSER = 0x1200
 [I] Add user: name=%s, id=%d, type=%d, enabled=%d.
static const err ERR_MSP_SECURITY_BAD_GROUP_NAME = 0x1009
 [W] Invalid group name - names cannot contain the following characters:
static const err ERR_MSP_SECURITY_BAD_USER_NAME = 0x1004
 [W] Invalid user name - names cannot contain the following characters:
static const err ERR_MSP_SECURITY_CMDLINE_CGI = 0x111F
 [F] Cannot use command-line session while running in CGI environment.
static const err ERR_MSP_SECURITY_DEL_ADMIN_FROM_GP = 0x1013
 [W] The administrator user cannot be removed from the administrator group.
static const err ERR_MSP_SECURITY_DEL_ADMIN_RIGHTS = 0x1012
 [W] The administrator rights cannot be removed from the administrator group.
static const err ERR_MSP_SECURITY_DEL_SPECIAL_GROUP = 0x100F
 [W] The special system group 's' cannot be deleted.
static const err ERR_MSP_SECURITY_DEL_SPECIAL_USER = 0x1010
 [W] The The special system user 's' cannot be deleted.
static const err ERR_MSP_SECURITY_DELETEGROUP = 0x1205
 [I] Delete group: name=%s, id=%d.
static const err ERR_MSP_SECURITY_DELUSER = 0x1201
 [I] Delete user: name=%s, id=%d.
static const err ERR_MSP_SECURITY_DIFFERENTIPADDR = 0x1106
 [F] The option to check IP address is enabled and this is an attempt to open this session from a different ip address.
static const err ERR_MSP_SECURITY_DISABLE_ADMIN = 0x1011
 [W] The administrator user cannot be disabled.
static const err ERR_MSP_SECURITY_DUPE_GROUP_ID = 0x1007
 [W] Attempt to add a group with the same ID as an existing group.
static const err ERR_MSP_SECURITY_DUPE_GROUP_NAME = 0x1008
 [W] Attempt to add a group with the same name as an existing group.
static const err ERR_MSP_SECURITY_DUPE_GROUP_NAME_U = 0x1014
 [W] Failed to update group -- the name has been changed, and there is already another group with this name.
static const err ERR_MSP_SECURITY_DUPE_USER_ID = 0x1002
 [W] Attempt to add a user with the same ID as an existing user.
static const err ERR_MSP_SECURITY_DUPE_USER_NAME = 0x1003
 [W] Attempt to add a user with the same name as an existing user.
static const err ERR_MSP_SECURITY_DUPE_USER_NAME_U = 0x1015
 [W] Failed to update user -- the name has been changed, and there is already another user with this name.
static const err ERR_MSP_SECURITY_FAIL_LOAD_GROUP = 0x100E
 [W] Failed to load the group information for group.
static const err ERR_MSP_SECURITY_FAIL_LOAD_SEC = 0x100C
 [W] Failed to load the main security configuration files.
static const err ERR_MSP_SECURITY_FAIL_LOAD_USER = 0x100D
 [W] Failed to load the user information for user.
static const err ERR_MSP_SECURITY_FAIL_SAVE_SEC = 0x1019
 [W] Failed to save the main security configuration files.
static const err ERR_MSP_SECURITY_FAILGETINTEGRA = 0x1116
 [W] Failed to get any integra users - return from Integra server was: %s.
static const err ERR_MSP_SECURITY_FAILGETINTEGRAURL = 0x1115
 [W] Failed to contact Integra server. See previous error in log file.
static const err ERR_MSP_SECURITY_GETALLGROUPIDS = 0x1300
 [D3] Called getAllGroupIDs - list of %d ids returned.
static const err ERR_MSP_SECURITY_GETALLUSERIDS = 0x1307
 [D3] Called ms_security::getAllUserIDs - list of %d ids returned.
static const err ERR_MSP_SECURITY_GETGROUPFAIL = 0x1302
 [D3] Called ms_security::getGroup(%s) - group not found.
static const err ERR_MSP_SECURITY_GETGROUPFROMIDFAIL = 0x1309
 [D3] Called ms_security::getGroupFromID('%d') - group id not found.
static const err ERR_MSP_SECURITY_GETGROUPFROMIDOK = 0x1308
 [D3] Called ms_security::getGroupFromID('%d') - returned group (%s) successfully.
static const err ERR_MSP_SECURITY_GETGROUPOK = 0x1301
 [D3] Called ms_security::getGroup(%s) - returned successfully.
static const err ERR_MSP_SECURITY_GETINTEGRAUSERS1 = 0x130D
 [D3] Called ms_security::getIntegraUsers - url %s.
static const err ERR_MSP_SECURITY_GETINTEGRAUSERS2 = 0x130E
 [D3] Called ms_security::getIntegraUsers - return string from URL is: %s.
static const err ERR_MSP_SECURITY_GETINTEGRAUSERS3 = 0x130F
 [D3] Called ms_security::getIntegraUsers - list of %d ids returned.
static const err ERR_MSP_SECURITY_GETPERMTASKSFAIL = 0x130B
 [D3] Called ms_security::getPermittedTasksForUser('%s') - user name not found.
static const err ERR_MSP_SECURITY_GETPERMTASKSOK = 0x130A
 [D3] Called ms_security::getPermittedTasksForUser('%s') - user name found, %d tasks returned.
static const err ERR_MSP_SECURITY_GETUSERFAIL = 0x1304
 [D3] Called ms_security::getUser('%s') - user not found.
static const err ERR_MSP_SECURITY_GETUSERFROMIDFAIL = 0x1306
 [D3] Called ms_security::getUserFromID('%d') - user id not found..
static const err ERR_MSP_SECURITY_GETUSERFROMIDOK = 0x1305
 [D3] Called ms_security::getUserFromID('%d') - returned user (%s) successfully.
static const err ERR_MSP_SECURITY_GETUSEROK = 0x1303
 [D3] Called ms_security::getUser('%s') - returned successfully.
static const err ERR_MSP_SECURITY_GROUPID_NOT_FOUND = 0x100B
 [W] Group ID not found.
static const err ERR_MSP_SECURITY_GROUPNAME_NOT_FOUND = 0x100A
 [W] Group name not found.
static const err ERR_MSP_SECURITY_INTEGRACONNFORMAT = 0x1117
 [F] Integra connection id (%s) is not of the format expected.
static const err ERR_MSP_SECURITY_INTEGRAINVALIDCO = 0x1119
 [F] Integra connection id has probably timed out. Error return is: %s
static const err ERR_MSP_SECURITY_INTEGRAINVALIDPW = 0x1118
 [F] Integra password is probably invalid. Error return is: %s
static const err ERR_MSP_SECURITY_INVALID_SESSION_ID = 0x1000
 [W] An invalid session ID was passed to a function.
static const err ERR_MSP_SECURITY_INVALIDPASSWORD = 0x1102
 [F] You have entered an invalid password, %s - please try again [ec=%d].
static const err ERR_MSP_SECURITY_INVALIDSESSION = 0x1109
 [F] The current session is invalid, but an attempt has been made to save parameters.
static const err ERR_MSP_SECURITY_INVALIDUSER = 0x1101
 [F] No such user.
static const err ERR_MSP_SECURITY_LOADINGSESS = 0x1332
 [D3] Loading session (%s).
static const err ERR_MSP_SECURITY_LOADSESSIONFILE = 0x111A
 [F] The session file exists but we can't load it.
static const err ERR_MSP_SECURITY_MISSINGSESSIONFILE = 0x1103
 [F] Can't find the session file requested.
static const err ERR_MSP_SECURITY_MSSESSCOOKIE = 0x1331
 [D3] Cookie from ms_session::ms_session() = %s.
static const err ERR_MSP_SECURITY_MSSESSINTEGRA = 0x1334
 [I] Called ms_session::ms_session(%s,[connectionID],%s).
static const err ERR_MSP_SECURITY_MSSESSIONCTOR = 0x1330
 [D3] Called ms_session::ms_session(%s).
static const err ERR_MSP_SECURITY_MSSESSLOGIN = 0x1333
 [I] Called ms_session::ms_session(%s,[password]).
static const err ERR_MSP_SECURITY_MSSESSRESULTSPERM = 0x1335
 [D3] Called ms_session::canResultsFileBeViewed(%d - return %d).
static const err ERR_MSP_SECURITY_NO_GUEST_PWD = 0x1017
 [W] You cannot set a password for the guest user.
static const err ERR_MSP_SECURITY_NO_INTEGRA_LOGIN = 0x111D
 [F] You cannot login from this screen. Please login to Mascot Integra first, and access the Mascot Home Page from there.
static const err ERR_MSP_SECURITY_NO_RIGHTS_UPD_USR = 0x101A
 [W] Insufficient acccess rights to update user profile for %s.
static const err ERR_MSP_SECURITY_NOCREATEGUEST = 0x110C
 [F] Unable to create a guest session.
static const err ERR_MSP_SECURITY_NOSAVEPARAMS = 0x110A
 [F] Cannot save parameters in this type of sessin (e.g. guest user, no authentication enabled).
static const err ERR_MSP_SECURITY_NOT_ADMIN_SESSION = 0x1001
 [W] Administrator rights are required to add, delete or change users or groups.
static const err ERR_MSP_SECURITY_NOT_ENABLED = 0x111C
 [F] There is no need to login to this server - Mascot security is not enabled.
static const err ERR_MSP_SECURITY_NOT_INTEGRA_USER = 0x111B
 [F] The 'type' of user (%s) needs to be changed to a Mascot Integra user using the Mascot security administration application.
static const err ERR_MSP_SECURITY_NOTLOGGEDIN = 0x1108
 [F] User is not logged in, so could not create a session.
static const err ERR_MSP_SECURITY_NOTNORMALUSER = 0x110F
 [F] Cannot login as this user (%s) because the user type is not a 'normal' or 'integra' user.
static const err ERR_MSP_SECURITY_OLD_PW_INVALID = 0x1016
 [W] The old password is not correct and you don't have administrator rights. Password not changed.
static const err ERR_MSP_SECURITY_PASSWORD_TOO_SHORT = 0x1018
 [W] The password entered is too short. Minimum length required is defined in the options.
static const err ERR_MSP_SECURITY_PASSWORDEXPIRED = 0x1107
 [F] Your password has expired, %s - please enter a new password.
static const err ERR_MSP_SECURITY_SAMEPASSWORD = 0x1110
 [F] Cannot change your password to the same as the previous password.
static const err ERR_MSP_SECURITY_SAVESESSIONFILE = 0x1104
 [F] Can't save a new session file.
static const err ERR_MSP_SECURITY_SESSIONDESTROYED = 0x110B
 [D1]The session has been terminated and is therefore no longer valid.
static const err ERR_MSP_SECURITY_SPOOFATTEMPT1 = 0x1111
 [F] Trying to use session %s from computer with ip address %s - please contact your administrator.
static const err ERR_MSP_SECURITY_SPOOFATTEMPT2 = 0x1112
 [F] Trying to use session %s when logged into the web server as %s - please contact your administrator.
static const err ERR_MSP_SECURITY_SPOOFATTEMPT3 = 0x1113
 [F] Trying to use session %s (USER_AGENT_STRING) when agent string is actually %s - please contact your administrator.
static const err ERR_MSP_SECURITY_SPOOFATTEMPT4 = 0x1114
 [F] Trying to use command line session %s from a cgi application at ip address %s - please contact your administrator.
static const err ERR_MSP_SECURITY_TIMEDOUT = 0x1105
 [F] Session has timed out.
static const err ERR_MSP_SECURITY_UPDATEALLSESSFILES = 0x130C
 [D3] Called ms_security::updateAllSessionFiles - %d files potentially updated.
static const err ERR_MSP_SECURITY_UPDATEGROUP = 0x1206
 [I] Updated group: id=%d, old name=%s, new name=%s, added users=%s, deleted users=%s. Changed tasks=%s.
static const err ERR_MSP_SECURITY_UPDATEPW = 0x1203
 [I] Update user password for user id %d, name %s. Old p/w expiry=%ld. New p/w expiry=%ld.
static const err ERR_MSP_SECURITY_UPDATESESS = 0x110D
 [F] Unable to update session %s. Error %s.
static const err ERR_MSP_SECURITY_UPDATEUSER = 0x1202
 [I] Update user %d: [old,new]. Name=[%s,%s], FullName=[%s,%s], pw_exp=[%ld,%ld], type=[%d,%d], email=[%s,%s], enabled=[%d,%d].
static const err ERR_MSP_SECURITY_USERID_NOT_FOUND = 0x1006
 [W] User ID not found.
static const err ERR_MSP_SECURITY_USERNAME_NOT_FOUND = 0x1005
 [W] User name not found.
static const err ERR_MSP_SECURITY_VALIDATEINTEGRACO1 = 0x1313
 [D3] Called ms_security_session::verifyIntegraConnection - url %s.
static const err ERR_MSP_SECURITY_VALIDATEINTEGRACO2 = 0x1314
 [D3] Called ms_security_session::verifyIntegraConnection - OK.
static const err ERR_MSP_SECURITY_VALIDATEINTEGRAPW1 = 0x1310
 [D3] Called ms_security_session::validateIntegraPassword - url %s.
static const err ERR_MSP_SECURITY_VALIDATEINTEGRAPW2 = 0x1311
 [D3] Called ms_security_session::validateIntegraPassword - return string from URL is: %s.
static const err ERR_MSP_SECURITY_VALIDATEINTEGRAPW3 = 0x1312
 [D3] Called ms_security_session::validateIntegraPassword - OK.
static const err ERR_MSP_SESSION_UTIME_FAIL = 0x111E
 [W] Failed to update last modified time for s. Error: s
static const err ERR_MSP_SL_SCORING_MODEL_FAIL = 0x1F01
 [W] Failed to fit spectral library scoring model, so using a default threshold. Reason: s
static const err ERR_MSP_SL_SCORING_MODEL_WARN = 0x1F02
 [W] Spectral library threshold may not be optimal: s
static const err ERR_MSP_SPECIFY_UNAVAILABLE_PROCESSOR = 0x061B
 [W] ProcessorSet specifies unavailable processor.
static const err ERR_MSP_SYSMP_FAIL = 0x0106
 [F] Failed call to sysmp() for multi-processor support.
static const err ERR_MSP_TARGET_FDR_FAILED_FOR_ET = 0x1F03
 [W] Target FDR s g%% could not be reached for error tolerant matches. Using first pass sigthreshold for error tolerant matches.
static const err ERR_MSP_TARGET_FDR_FAILED_FOR_FIRST_PASS = 0x1F06
 [W] Target FDR s g%% could not be reached. Using minProbability = g.
static const err ERR_MSP_TAXONOMY_CONFLICT_PARENTS = 0x0B05
 [W] The parent for taxonomy id d in s conflicts with parent specified in files: s
static const err ERR_MSP_TAXONOMY_DEFINITION_END = 0x0B04
 [F] Missing end of taxonomy choice definition.
static const err ERR_MSP_TAXONOMY_INVALID_NODE_FILE = 0x0B06
 [F] Invalid line [%s] in the node file [%s].
static const err ERR_MSP_TAXONOMY_MISSING_NODE_FILE = 0x0B07
 [F] The taxonomy node file [%s] is missing.
static const err ERR_MSP_TAXONOMY_NO_COMMAS = 0x0B02
 [F] Comma is not allowed in taxonomy choice title.
static const err ERR_MSP_TAXONOMY_NO_TITLE = 0x0B01
 [F] The first non-empty line is expected to be Title:....
static const err ERR_MSP_TAXONOMY_WRONG_LINE = 0x0B03
 [F] Line cannot be parsed.
static const err ERR_MSP_TOO_MANY_MODS_IN_MOD_FILE = 0x0402
 [W] Too many modification have been loaded from file(s).
static const err ERR_MSP_TOO_MANY_PROCESSORS = 0x061C
 [W] More processors specified than licensed.
static const err ERR_MSP_TOO_MANY_TH_PROCESSORS = 0x061D
 [W] Too many processors named for a smaller number of threads for a database.
static const err ERR_MSP_UMOD_FAILEDLOAD = 0x1500
 [W] Failed to load unimod.xml file.
static const err ERR_MSP_UMOD_FAILEDSAVE = 0x1501
 [W] Failed to save unimod.xml file.
static const err ERR_MSP_UNEXPECTED_LINE_OUT_OF_SECT = 0x0625
 [W] Expecting a comment or section name, but found "%s" in the file: s
static const err ERR_MSP_WRONG_ICAT_FILTER = 0x0620
 [W] Empty ICAT filter is not allowed.
static const err ERR_MSP_WRONG_MOD_VECTOR = 0x0A02
 [F] Variable mods vector cannot be applied to the peptide.
static const err ERR_MSP_WWW_SECTION = 0x061E
 [W] Error in WWW section.
static const err ERR_MSP_XHUNTER_WRONG_FORMAT = 0x1D20
 [W] Mods= line '[text]' is not in valid XHunter format.
static const err ERR_MSP_XML_ELEMENT_NOT_FOUND = 0x0807
 [F] Cannot find element with the supplied name.
static const err ERR_MSP_XML_FAILEDLOAD = 0x0809
 [F] Failed to load xml file 's'. Reason: 's'.
static const err ERR_MSP_XML_FAILEDSAVE = 0x0810
 [F] Failed to save xml file 's'.
static const err ERR_MSP_XML_FIELD_NOTFOUND = 0x0804
 [F] Records in a table doesn't have the required field.
static const err ERR_MSP_XML_INVALID_FIELD_FORMAT = 0x0805
 [F] Field of a record contains data in wrong format.
static const err ERR_MSP_XML_LOCAL_SCHEMA_NOT_STORED = 0x0806
 [F] Cannot store XML-schema file locally.
static const err ERR_MSP_XML_MEMORY_ERROR = 0x0808
 [F] Memory allocation failed when working with XML.
static const err ERR_MSP_XML_NO_ROOT_ELEMENT = 0x0802
 [F] XML document doesn't contain a root element.
static const err ERR_MSP_XML_SYSTEM_FAILED = 0x0801
 [F] XML-library failure.
static const err ERR_MSP_XML_TABLE_NOTFOUND = 0x0803
 [F] Table with a specific name is not found amongst children of the current node.
static const err ERR_MSP_XMLSCHEMA_FAILEDLOAD = 0x1600
 [W] Failed to load xml schema file.
static const err ERR_MSP_XMLSCHEMA_FAILEDSAVE = 0x1601
 [W] Failed to save xml schema file.
static const err ERR_MSP_ZIP_BUFTOOSMALL = 0x1702
 [F] Buffer too small - [value].
static const err ERR_MSP_ZIP_ENDIAN = 0x1700
 [W] Failed to determine endian - assuming little endian.
static const err ERR_MSP_ZIP_INVALIDDATA = 0x1703
 [F] Compressed data is invalid.
static const err ERR_MSP_ZIP_LENGTHDIFFERS = 0x1705
 [F] Expected length of uncompressed data ([value]) differs from actual length [value].
static const err ERR_MSP_ZIP_NOTSTREAMING = 0x1709
 [F] Streaming mode not initalised
static const err ERR_MSP_ZIP_OUTOFMEMORY = 0x1701
 [F] Insufficient memory to compress/decompress the data.
static const err ERR_MSP_ZIP_STREAMERROR = 0x1710
 [F] Cannot compress: [reason]
static const err ERR_MSP_ZIP_UNCOMPRESSEDDATATOOLONG = 0x1706
 [F] Uncompressed data longer ([value]) than maximum permitted ([value]).
static const err ERR_MSP_ZIP_UNKNOWN = 0x1704
 [F] Unknown zip error
static const err ERR_MSP_ZIP_VERSIONERROR = 0x1708
 [F] Invalid zlib version: [reason]
static const err ERR_MSP_ZIP_ZEROLENGTH = 0x1707
 [F] Cannot compress zero length data.
static const err ERR_NEED_64_BIT = 0x002B
 [F] This results file (%s) is too large for 32 bit Mascot Parser. Please upgrade to 64 bit.
static const err ERR_NO_ERR_TOL_PARENT = 0x0010
 [F] No parent search file. See Error tolerant searches.
static const err ERR_NO_ERROR = 0x0000
 [W] Success.
static const err ERR_NO_UNIGENE_FILE = 0x0017
 [F] Failed to open the UniGene file specified.
static const err ERR_NOMEM = 0x0001
 [F] Failed to allocate memory to load the file.
static const err ERR_NOSUCHFILE = 0x0002
 [F] The file passed in the constructor does not exist.
static const err ERR_NULL_ACC_PEP_SUM = 0x0011
 [W] An empty accession string has been found. Possible problem in database.
static const err ERR_NULL_ACC_PROT_SUM = 0x0012
 [W] An empty accession string has been found. Possible problem in database.
static const err ERR_OLDRESULTSFILE = 0x0019
 [F] Very old results file (last century!). Parser requires 1.02 or later.
static const err ERR_PEPSUMMPEPGET = 0x0006
 [F] Value of q, p or h out of range, so cannot get peptide info.
static const err ERR_PEPTIDESTR = 0x0007
 [F] The string in the peptides block is not valid.
static const err ERR_PROTSUMM = 0x0009
 [F] Error parsing a line in the protein summary.
static const err ERR_PROTSUMMPEP = 0x000A
 [F] Couldn't parse peptide information from the protein summary section..
static const err ERR_QUERYOUTOFRANGE = 0x0004
 [F] Set if query < 1 or query > getNumQueries.
static const err ERR_READINGFILE = 0x0003
 [F] Opened the file successfully, but failed to read from it.
static const err ERR_RESFILE_INVALID_DB_TYPE = 0x1E01
 [W] Invalid database type 's'. Forcing to AA.
static const err ERR_RESFILE_LINKED_SITES = 0x1E02
 [W] Could not read s from qd_pd_linked_sites in section s
static const err ERR_RESFILE_LOOPLINKED_SITES = 0x1E03
 [W] Could not read s from qd_pd_looplinked_sites in section s
static const err ERR_RESFILE_MISSING_QEXP = 0x1E04
 [W] Could not read s from section s in s
static const err ERR_RESULTS_NOT_CREATED = 0x003A
 [W] Attempting to call Mascot Parser function %s before createSummary() has completed.
static const err ERR_UNASSIGNED_PROG = 0x0014
 [F] Programming error! Calling getNumberOfUnassigned() or getUnassigned() before createUnassignedList().
static const err ERR_UNASSIGNED_RANGE = 0x0015
 [F] Calling ms_mascotresults::getUnassigned() with out of range number.
static const err ERR_UNASSIGNED_UNK = 0x0016
 [F] Calling ms_mascotresults::getUnassigned() -- unable to retrieve value.
static const err ERR_UNIGENE_MULTIDB = 0x0020
 [W] UniGene index is not supported in multi-database search.
static const err ERR_WRITE_CDB_FILE = 0x0029
 [W] Failed to write to the cache file (%s). Error %d (%s).
static const msg_num_t LOGMSG_AAHELPER_CALC_MASS_MAX_REACHED = 0x0001060F
 [D2] Iteration for seriesID=[num] stops at index=[num] and mass=[mass]: limit is [mass]
static const msg_num_t LOGMSG_AAHELPER_CALC_MASS_SKIP_D_PRIME_RES = 0x00010610
 [D2] Skipping d' residue because it doesn't match /[I]/ or /[T]/ (seriesID=[num], pos=[num], residue=[char])
static const msg_num_t LOGMSG_AAHELPER_CALC_MASS_SKIP_D_RESIDUE = 0x00010611
 [D2] Skipping d residue because it doesn't match /[ITV]/ or /[CDEKLMNPQRS]/ (seriesID=[num], pos=[num], residue=[char])
static const msg_num_t LOGMSG_AAHELPER_CALC_MASS_SKIP_V_RESIDUE = 0x00010612
 [D2] Skipping v residue because it doesn't match /[ARDNCQEHILKMFPSTWYV]/ (seriesID=[num], pos=[num], residue=[char])
static const msg_num_t LOGMSG_AAHELPER_CALC_MASS_SKIP_W_PRIME_RES = 0x00010613
 [D2] Skipping w' residue because it doesn't match /[I]/ or /[T]/ (seriesID=[num], pos=[num], residue=[char])
static const msg_num_t LOGMSG_AAHELPER_CALC_MASS_SKIP_W_RESIDUE = 0x00010614
 [D2] Skipping w residue because it doesn't match /[ITV]/ or /[RDNCQELKMPS]/ (seriesID=[num], pos=[num], residue=[char])
static const msg_num_t LOGMSG_AAHELPER_CFR_INIT_VARMOD_IS_LINKER = 0x0001061D
 [D3] PSM component [num] position i=[num] has intact link, modnum=[num]
static const msg_num_t LOGMSG_AAHELPER_CFR_INIT_VARMOD_IS_MONOLINK = 0x0001061E
 [D3] PSM component [num] position i=[num] has monolink modnum=[num] monoLinkNum=[num] title=[name]
static const msg_num_t LOGMSG_AAHELPER_CFR_LOOPLINKING_MASK = 0x0001061F
 [D1] PSM component [num] column i=[num] is ignored because there is a looplink at sites [num]-[num], modnum=[num]
static const msg_num_t LOGMSG_AAHELPER_CFR_MASSES_VALUE = 0x0001061B
 [D2] Active ms_masses: [name]=[value]
static const msg_num_t LOGMSG_AAHELPER_CFR_MOD_DELTA_AT_SITE = 0x0001061C
 [D1] Modification at site i=[num] is [name] with delta=[num]
static const msg_num_t LOGMSG_AAHELPER_CFR_NUM_FRAGMENTS = 0x00010600
 [D1] Calculated [num] fragments for psmComponent=[num], seriesID=[num], fragCharge=[num], fragNlType=[num], linkerColumn=[num], linkerMassOffset=[mass]
static const msg_num_t LOGMSG_AAHELPER_CFR_SET_QUANT_COMPONENT = 0x0001061A
 [D1] cfr: Initialising isotopes and fixed mods from quant component [name]
static const msg_num_t LOGMSG_AAHELPER_CFR_START_FRAGMENTS = 0x00010618
 [D1] cfr(psmComponent=[num], seriesID=[num], fragCharge=[num], minMass=[mass], maxMass=[mass], massType=[num], fragNlType=[num], linkerColumn=[num], linkerMassOffset=[mass])
static const msg_num_t LOGMSG_AAHELPER_CROSSLINKED_END = 0x00010619
 [D1] calcCrosslinkedFragments: returning [num] alpha and [num] beta fragments
static const msg_num_t LOGMSG_AAHELPER_CROSSLINKED_START = 0x00010609
 [D1] calcCrosslinkedFragments(seriesID=[num], fragCharge=[num], minMass=[mass], maxMass=[mass], massType=[num], fragNlType=[num]); mass of linker + alpha = [mass]; linker + beta = [mass]
static const msg_num_t LOGMSG_AAHELPER_CUMULATIVE_MASS_NL = 0x0001060D
 [D2] Cumulative mass and NL at i=[num] residue=[char]: m[i]=[mass], nl[i]=[mass]
static const msg_num_t LOGMSG_AAHELPER_ETMOD_LOOKUP = 0x00010615
 [D1] lookupErrorTolerantModification(q=[num], p=[num], residue=[char]) --> raw name=[string], raw delta=[string], mod name=[name], mod delta=[mass], is mod?=[num], nl=[mass]
static const msg_num_t LOGMSG_AAHELPER_IMMONIUM_ION_ADD = 0x00010606
 [D2] Added immonium ion mass=[mass], nl=[mass], psmComponent=[num], seriesID=[num], column=[num], residue=[char], fragCharge=[num]
static const msg_num_t LOGMSG_AAHELPER_IMMONIUM_ION_REJECT = 0x00010605
 [D2] Rejected immonium ion mass=[mass], nl=[mass], psmComponent=[num], seriesID=[num], column=[num], residue=[char], fragCharge=[num], because it is outside the range [[mass], [mass]]
static const msg_num_t LOGMSG_AAHELPER_INTERNAL_ION_ADD = 0x00010608
 [D2] Added internal ion mass=[mass], nl=[mass], psmComponent=[num], seriesID=[num], start=[num], end=[num], fragCharge=[num]
static const msg_num_t LOGMSG_AAHELPER_INTERNAL_ION_REJECT = 0x00010607
 [D2] Rejected internal ion mass=[mass], nl=[mass], psmComponent=[num], seriesID=[num], start=[num], end=[num], fragCharge=[num], because it is outside the range [[mass], [mass]]
static const msg_num_t LOGMSG_AAHELPER_MASTER_NL_VALS = 0x0001060B
 [D2] Master neutral loss=[array]
static const msg_num_t LOGMSG_AAHELPER_MULTINL_INDICES = 0x0001060A
 [D1] Currently active multi NL indices=[array]
static const msg_num_t LOGMSG_AAHELPER_REGULAR_ION_ADD = 0x00010602
 [D2] Added regular ion mass=[mass], nl=[mass], psmComponent=[num], seriesID=[num], column=[num], fragCharge=[num]
static const msg_num_t LOGMSG_AAHELPER_REGULAR_ION_REJECT = 0x00010601
 [D2] Rejected regular ion mass=[mass], nl=[mass], psmComponent=[num], seriesID=[num], column=[num], fragCharge=[num], because it is outside the range [[mass], [mass]]
static const msg_num_t LOGMSG_AAHELPER_REGULAR_PRIME_ION_ADD = 0x00010604
 [D2] Added regular ion mass=[mass], nl=[mass], psmComponent=[num], seriesID=[num] ([name]), column=[num], fragCharge=[num]
static const msg_num_t LOGMSG_AAHELPER_REGULAR_PRIME_ION_REJECT = 0x00010603
 [D2] Rejected regular ion mass=[mass], nl=[mass], psmComponent=[num], seriesID=[num] ([name]), column=[num], fragCharge=[num], because it is outside the range [[mass], [mass]]
static const msg_num_t LOGMSG_AAHELPER_SERIES_PARAMS = 0x0001060E
 [D1] Parameters for seriesID=[num]: delta=[mass], start=[num], end=[num], forward=[num]
static const msg_num_t LOGMSG_AAHELPER_SETUP_FROM_PRE2_2_ANYCHNG = 0x00010617
 [D1] setupFromPre2_2ResultsFile(peptide=[string], varmods=[string]) --> anyChange=[num], modNum=[num], oldStyleModName=[string], modType=[num]
static const msg_num_t LOGMSG_AAHELPER_SETUP_FROM_PRE2_2_INIT = 0x00010616
 [D1] setupFromPre2_2ResultsFile(peptide=[string], varmods=[string]) --> modNum=[num], idx=[num], modType=[num]
static const msg_num_t LOGMSG_AAHELPER_TOTAL_NL_VALS = 0x0001060C
 [D2] Currently active multi NL neutral loss=[array]
static const msg_num_t LOGMSG_CUSTQUANT_ADD_QUANT_KEY = 0x00010400
 [D2] Adding quantitation key id d to protein s .
static const msg_num_t LOGMSG_CUSTQUANT_REMOVE_ALL_KEY = 0x00010401
 [D2] Removing quantitation key d from any proteins.
static const msg_num_t LOGMSG_CUSTQUANT_REMOVE_KEY = 0x00010402
 [D2] Removed quantitation key d from protein s.
static const msg_num_t LOGMSG_DBG1_NUM_PROCESSOR_GROUPS = 0x00010160
 [D1] Debug: Number of processor groups : %d.
static const msg_num_t LOGMSG_DBG2_CPU_INF_CORE_PER_PHYS = 0x00010178
 [D2] Debug: Number of cores per physical cpu : %d
static const msg_num_t LOGMSG_DBG2_CPU_INF_GETAUTODETECT = 0x00010179
 [D2] Debug: getAutoDetectNumThreads(1,4) : %d
static const msg_num_t LOGMSG_DBG2_CPU_INF_LOGI_PER_PHYS = 0x00010177
 [D2] Debug: Number of logical cpus / physical cpu: %d
static const msg_num_t LOGMSG_DBG2_CPU_INF_MT_NAME = 0x0001017A
 [D2] Debug: Multi-threaded name : %s
static const msg_num_t LOGMSG_DBG2_CPU_INF_MT_STATUS = 0x0001017B
 [D2] Debug: Hyper/multi threading status : %d
static const msg_num_t LOGMSG_DBG2_CPU_INF_NAME = 0x00010173
 [D2] Debug: Processor name : %s
static const msg_num_t LOGMSG_DBG2_CPU_INF_NUM_AVAIL = 0x00010171
 [D2] Debug: Logical number of cpus available : %d
static const msg_num_t LOGMSG_DBG2_CPU_INF_NUM_GROUPS = 0x00010172
 [D2] Debug: Number of processor groups : %d
static const msg_num_t LOGMSG_DBG2_CPU_INF_NUM_ON_SYS = 0x00010170
 [D2] Debug: Logical number of cpus on the system : %d
static const msg_num_t LOGMSG_DBG2_CPU_INF_NUM_PHYSICAL = 0x00010176
 [D2] Debug: Physical number of cpus on the system: %d
static const msg_num_t LOGMSG_DBG2_CPU_INF_PROC_AFFINITY = 0x00010174
 [D2] Debug: Process Affinity supported : %s
static const msg_num_t LOGMSG_DBG2_CPU_INF_TABLE_LINE = 0x0001017D
 [D2] Debug: 3d : 2d / 5d / 5d / %s / %s
static const msg_num_t LOGMSG_DBG2_CPU_INF_TABLE_TITLE = 0x0001017C
 [D2] Debug: logical : physical id / core id / ht id / is primary / is threaded:
static const msg_num_t LOGMSG_DBG2_CPU_INF_USE_PROCESSES = 0x00010175
 [D2] Debug: Use processes instead of threads : %s
static const msg_num_t LOGMSG_DBG2_NUM_CONFIG_MISMATCH = 0x00010168
 [D2] Debug: Processor configuration detection mismatch: hwloc detects %d and system detects %d configured processors.
static const msg_num_t LOGMSG_DBG2_NUM_ONLINE_MISMATCH = 0x00010169
 [D2] Debug: Processor configuration detection mismatch: hwloc detects %d and system detects %d online processors.
static const msg_num_t LOGMSG_DBG3_AUTO_DETECT_NUM_THREAD = 0x00010163
 [D3] Debug: getAutoDetectNumThreads. logicalPerPhysical: %d, numCores: %d, numLicensed: %d, numCoresPerCpuLicense: %d, maxLicensable: %d, numAvailableToProcess: %d.
static const msg_num_t LOGMSG_DBG3_BINDING_PROCESSORS = 0x00010166
 [D3] Debug: binding processors %s.
static const msg_num_t LOGMSG_DBG3_BINDING_THREAD = 0x00010167
 [D3] Debug: binding thread p to logical processor %d.
static const msg_num_t LOGMSG_DBG3_CALL_GET_CHIP_MFCTR = 0x00010164
 [D3] Debug: about to call getChipManufacturer()
static const msg_num_t LOGMSG_DBG3_HWLOC_GROUPS = 0x00010162
 [D2] Debug: hwloc reports %d processor groups.
static const msg_num_t LOGMSG_DBG3_HWLOC_TREE = 0x00010161
 [D3] Debug: iterateHwlocChildren: %-8s, logical: %d, depth: %d, packageID: %d, coreID: %d.
static const msg_num_t LOGMSG_DBG3_PROCESSOR_NAME = 0x00010165
 [D2] Debug: processor name: %s, hyperthreading: %s.
static const msg_num_t LOGMSG_GET_THR_LOOP_BODY_MIN_FOUND = 0x00010A05
 [D2] getThresholdForFDR: found a new minimum at i=d, fdr_min=g, target_min=d, decoy_min=d, expect_min=g
static const msg_num_t LOGMSG_GET_THR_LOOP_BODY_START = 0x00010A03
 [D2] getThresholdForFDR: i=d, expect=g, target=d, decoy=d, target_count=d, decoy_count=d, fdr=g, too_few=d
static const msg_num_t LOGMSG_GET_THR_LOOP_BODY_ZERO_COUNT = 0x00010A04
 [D2] getThresholdForFDR: target or decoy count dropped to zero at i=d, target_count=d, decoy_count=d
static const msg_num_t LOGMSG_GET_THR_REACH_COND = 0x00010A06
 [D2] getThresholdForFDR: Result FDR reached; minimum seen at fdr_min=g, expect_min=g, target_min=d, decoy_min=d
static const msg_num_t LOGMSG_GET_THRESHOLD_FOR_FDR_FOR_ET = 0x00010A02
 [D1] getThresholdForFDR(g, s, DM_FASTA_SECOND_PASS) returned success = d, closestFDR = g, minProbability = g, numTargetMatches = d, numDecoyMatches = d
static const msg_num_t LOGMSG_GET_THRESHOLD_FOR_FIRST_PASS_FDR = 0x00010A01
 [D1] getThresholdForFDR(g, s, DM_FASTA_FIRST_PASS) returned success = d, closestFDR = g, minProbability = g, numTargetMatches = d, numDecoyMatches = d
static const msg_num_t LOGMSG_HTTP_GETRETURNSTRING = 0x00010304
 [I] The http GET returned '[text]'.
static const msg_num_t LOGMSG_HTTP_MAXCONECTIONS10FAILED = 0x00010303
 [I] Failed to set maximum connections per 1.0 server
static const msg_num_t LOGMSG_HTTP_MAXCONECTIONSFAILED = 0x00010302
 [I] Failed to set maximum connections per server
static const msg_num_t LOGMSG_HTTP_QUERYSTATUSRESULT = 0x00010301
 [I] HTTP status is [httpCode] 'httpText'.
static const msg_num_t LOGMSG_HTTP_URLSTRING = 0x00010300
 [I] Sending HTTP [httpMethod] to [url] for action [command].
static const msg_num_t LOGMSG_INST_ADDINGDATABASE = 0x00010205
 [I] Adding entry for s to mascot.dat.
static const msg_num_t LOGMSG_INST_ADDOPTIONSSECTION = 0x00010208
 [I] Added [value] to the options section of mascot.dat.
static const msg_num_t LOGMSG_INST_APPENDPARSERULE = 0x00010207
 [I] Added parse rule number [value].
static const msg_num_t LOGMSG_INST_APPENDTAXONOMY = 0x00010204
 [I] Appended taxonomy section [value].
static const msg_num_t LOGMSG_INST_CHANGEDBTAXONOMY = 0x00010206
 [I] Changed taxonomy entry for [database].
static const msg_num_t LOGMSG_INST_CHANGEPARSERULE = 0x0001020C
 [I] Changed [value] parse rule from rule [value] to [value].
static const msg_num_t LOGMSG_INST_CHANGEPERCOLATORFEATS = 0x00010210
 [I] Changed PercolatorFeatures section of mascot.dat from [value] to [value].
static const msg_num_t LOGMSG_INST_CHANGEPROTFAMILYSWITCH = 0x00010211
 [I] Changed ProteinFamilySwitch section of mascot.dat from [value] to [value].
static const msg_num_t LOGMSG_INST_CLUSTERSECTION = 0x0001020A
 [I] Set the value of [name] to [value] in the cluster section of mascot.dat.
static const msg_num_t LOGMSG_INST_FAILSAVEPOSTINSTALLFILE = 0x0001020E
 [I] Failed to save Post Install File [name]. Error [value]
static const msg_num_t LOGMSG_INST_LOGICALPERPHYSICALCPU = 0x00010200
 [I] Detected %d logical processors per physical CPU.
static const msg_num_t LOGMSG_INST_MASCOTDATOK = 0x00010203
 [I] Successfully loaded existing mascot.dat from [path].
static const msg_num_t LOGMSG_INST_NOSUBCLUSTERSET = 0x0001020B
 [I] No SubClusterSet entry in mascot.dat.
static const msg_num_t LOGMSG_INST_NOTMASCOTDATOK = 0x00010202
 [I] Successfully loaded not.mascot.dat from [path].
static const msg_num_t LOGMSG_INST_NUMTHREADS = 0x00010201
 [I] Setting number of threads to [value].
static const msg_num_t LOGMSG_INST_REMOVEOPTIONSSECTION = 0x0001020F
 [I] Removed [value] from the options section of mascot.dat.
static const msg_num_t LOGMSG_INST_SAVEDPOSTINSTALLFILE = 0x0001020D
 [I] Saved line ([text]) in Post Install File [name] for Database Manager
static const msg_num_t LOGMSG_INST_SETOPTIONSSECTION = 0x00010209
 [I] Set the value of [name] to [value] in the options section of mascot.dat.
static const msg_num_t LOGMSG_MATRIX_OUTPUT_VALS = 0x00010500
 [D3] s. d rows and d columns
s
static const msg_num_t LOGMSG_PEPSUM_GETHIT = 0x00010729
 [D3] [function]: [string], [string], [string]
static const msg_num_t LOGMSG_PROTINFER_CHOOSE_NEXT_KEEP = 0x00010713
 [D2] choose_next_free_protein(): free count of "[accession]" is [num] => keep
static const msg_num_t LOGMSG_PROTINFER_CHOOSE_NEXT_START = 0x00010710
 [D1] choose_next_free_protein(): lead_proteins are [list]
static const msg_num_t LOGMSG_PROTINFER_CHOOSE_NEXT_SUPERSET_EMPTY = 0x00010711
 [D2] choose_next_free_protein(): free_count of "[accession]" is [num] but no superset found in lead_proteins; keeping for now
static const msg_num_t LOGMSG_PROTINFER_CHOOSE_NEXT_SUPERSET_LIST = 0x00010712
 [D2] choose_next_free_protein(): free count of "[accession]" is [num] => move to subset_list with parents [list]
static const msg_num_t LOGMSG_PROTINFER_CLUSTER_FROM_ACC = 0x00010726
 [D1] sortByScore(): Starting point for cluster in hit [num] is [accession]
static const msg_num_t LOGMSG_PROTINFER_ELIMINATE_INTERSECTIONS_FREE_COUNT_ZERO = 0x0001070D
 [D2] eliminate_intersections() : ran out of unused_proteins (all free counts are zero)
static const msg_num_t LOGMSG_PROTINFER_ELIMINATE_INTERSECTIONS_NEXT = 0x0001070E
 [D2] eliminate_intersections() : next unused protein to try to add is "[accession]"
static const msg_num_t LOGMSG_PROTINFER_ELIMINATE_INTERSECTIONS_SUPERSET_LIST = 0x0001070F
 [D2] eliminate_intersections() : fix-up of supersetlist for "[accession]", [changed lists]
static const msg_num_t LOGMSG_PROTINFER_FIND_FAMILY_END = 0x00010704
 [D1] findFamily() end for accession "[accession]"
static const msg_num_t LOGMSG_PROTINFER_FIND_FAMILY_QUEUE = 0x00010701
 [D1] findFamily(): "[accession]" has [num] PSMs above threshold ([num] PSMs below), [num] homologous proteins, in_queue size=[num], queue size=[num]
static const msg_num_t LOGMSG_PROTINFER_FIND_FAMILY_REP_SEQS = 0x00010702
 [D1] findFamily(): "[accession]" has the following [num] representative sequences: [list]
static const msg_num_t LOGMSG_PROTINFER_FIND_FAMILY_START = 0x00010700
 [D1] findFamily() start for accession "[accession]"
static const msg_num_t LOGMSG_PROTINFER_FIND_MATCHES_PROTEIN_END = 0x00010725
 [D2] findMatchesForThisProteinAndChildren(): Accession: [accession], size of qp = [num]
static const msg_num_t LOGMSG_PROTINFER_FIND_MATCHES_PROTEIN_START = 0x00010723
 [D2] findMatchesForThisProteinAndChildren(): Accession: [accession], size of qp = [num]
static const msg_num_t LOGMSG_PROTINFER_FIND_MATCHES_SUBSET_START = 0x00010724
 [D2] findMatchesForThisProteinAndChildren(): Subset accession: [accession]
static const msg_num_t LOGMSG_PROTINFER_GROUP_FAMILY_DISCARDED_SL_LIST = 0x00010708
 [D2] groupFamily(): discardedSLProteins: [list]
static const msg_num_t LOGMSG_PROTINFER_GROUP_FAMILY_ELIMINATION = 0x00010709
 [D1] groupFamily(): eliminate_intersections. lead_proteins size = [num], subset_proteins size = [num]
static const msg_num_t LOGMSG_PROTINFER_GROUP_FAMILY_ELIMINATION_LEAD_LIST = 0x0001070B
 [D1] groupFamily(): leadProteins after elimination: [list]
static const msg_num_t LOGMSG_PROTINFER_GROUP_FAMILY_ELIMINATION_MEMBER_LIST = 0x0001070A
 [D1] groupFamily(): family members after elimination: [list]
static const msg_num_t LOGMSG_PROTINFER_GROUP_FAMILY_ELIMINATION_SUBSET_LIST = 0x0001070C
 [D1] groupFamily(): "[accession]" has parent "[accession]"
static const msg_num_t LOGMSG_PROTINFER_GROUP_FAMILY_PULL_IN = 0x0001072B
 [D1] homologous_proteins(): "[accession]" shares q[num]_p[num] with "[accession]" => pull it in to the family
static const msg_num_t LOGMSG_PROTINFER_GROUP_FAMILY_SAMESET_LEAD_LIST = 0x00010707
 [D2] groupFamily(): samesetLeadProteins: [list]
static const msg_num_t LOGMSG_PROTINFER_GROUP_FAMILY_SAMESET_PARENT_LIST = 0x00010706
 [D2] groupFamily(): samesetParents: [list]
static const msg_num_t LOGMSG_PROTINFER_GROUP_FAMILY_START = 0x00010705
 [D1] groupFamily() for "[accession]": samesetLeadProteins=[num], samesetParents=[num], discardedSLProteins=[num]
static const msg_num_t LOGMSG_PROTINFER_GROUP_FROM_ACC = 0x00010727
 [D1] sortByScore(): Starting point for group in hit [num] is [accession]
static const msg_num_t LOGMSG_PROTINFER_NUM_PEPTIDES_IN_FAMILY = 0x0001072A
 [D2] findFamily(): Family [num] has [num] peptide matches with keepingThisOne=[boolean]
static const msg_num_t LOGMSG_PROTINFER_PEPTIDE_MATRIX = 0x00010703
 [D2] findFamily(): [type] peptide matrix (transposed)
[matrix]
static const msg_num_t LOGMSG_PROTINFER_REMOVE_CONFLICTING_DISCARD = 0x00010716
 [D2] remove_conflicting_proteins(): lead protein "[accession]" has free count n < minNumSigUniqueSeqs (n = [num], minNumSiqUniqueSeqs = [num]) => move to subset list with parents [accessions]
static const msg_num_t LOGMSG_PROTINFER_REMOVE_CONFLICTING_KEEP = 0x00010715
 [D2] remove_conflicting_proteins(): lead protein "[accession]" does not overlap with any current lead protein => keep
static const msg_num_t LOGMSG_PROTINFER_REMOVE_CONFLICTING_START = 0x00010714
 [D2] remove_conflicting_proteins([list])
static const msg_num_t LOGMSG_PROTINFER_SINGLETON_FROM_ACC = 0x00010728
 [D1] sortByScore(): No grouping; hit [num] is just "[accession]"
static const msg_num_t LOGMSG_PROTINFER_SORT_BY_SCORE_CREATE = 0x00010718
 [D2] sortByScore(): About to create sorted_
static const msg_num_t LOGMSG_PROTINFER_SORT_BY_SCORE_CREATED = 0x00010719
 [D2] sortByScore(): Finished creating sorted_
static const msg_num_t LOGMSG_PROTINFER_SORT_BY_SCORE_DONE = 0x00010722
 [D1] sortByScore(): reached the end of sorted_, so it's all done
static const msg_num_t LOGMSG_PROTINFER_SORT_BY_SCORE_NEXT_PROTEIN = 0x00010721
 [D1] sortByScore(): next accession in sorted_ with significant rank 1 peptide is "[accession]"
static const msg_num_t LOGMSG_PROTINFER_SORT_BY_SCORE_NO_PROTEINS = 0x0001071A
 [D1] sortByScore(): proteins_ is empty, so it's all done
static const msg_num_t LOGMSG_PROTINFER_SORT_BY_SCORE_REMOVE_CHECKBOLD = 0x00010720
 [D1] sortByScore(): Removing "[accession]" because setBoldAndCheckBoxItems() returned false
static const msg_num_t LOGMSG_PROTINFER_SORT_BY_SCORE_REMOVE_LONGESTPEPLEN = 0x0001071D
 [D1] sortByScore(): Removing "[accession]" because longestPeptideLen [num] < minPepLenInPepSummary [num]
static const msg_num_t LOGMSG_PROTINFER_SORT_BY_SCORE_REMOVE_LONGESTSIGPEPLEN = 0x0001071E
 [D1] sortByScore(): Removing "[accession]" because longestSigPeptideLen [num] < minPepLenInPepSummary [num]
static const msg_num_t LOGMSG_PROTINFER_SORT_BY_SCORE_REMOVE_MAXHITS = 0x0001071C
 [D1] sortByScore(): Removing "[accession]" because numProteins [num] >= maxHitsToReport [num]
static const msg_num_t LOGMSG_PROTINFER_SORT_BY_SCORE_REMOVE_MINPROTEINSCORE = 0x0001071B
 [D1] sortByScore(): Removing "[accession]" because its score [num] is less than minProteinScore [num]
static const msg_num_t LOGMSG_PROTINFER_SORT_BY_SCORE_START = 0x00010717
 [D1] sortByScore(): Num proteins: [num], num peptides: [num], hitToAdd: [num]
static const msg_num_t LOGMSG_PROTINFER_SUBSET_STARTS_NEW_HIT = 0x0001071F
 [D2] sortByScore(): Protein "[accession]" is a subset in hit [num]. Because MSRES_SUBSETS_DIFF_PROT is active, it will now start hit [num]
static const msg_num_t LOGMSG_QUANT_ADDED_PROTEIN_HIT = 0x00010417
 [D2] Added quantitation protein hit [accession] to match [value] with sequence [text]
static const msg_num_t LOGMSG_QUANT_ADDING_PROTEIN_HIT = 0x00010416
 [D2] Adding quantitation protein hit [accession]
static const msg_num_t LOGMSG_QUANT_CALC_COMPLETE_ON_MERGED = 0x0001040F
 [D2] Calling calc_complete() on merged dataset
static const msg_num_t LOGMSG_QUANT_CLOSING_CACHE_FILE = 0x00010419
 [D2] Closing quantitation cache file [filename]
static const msg_num_t LOGMSG_QUANT_EXCLUDING_PEPTIDE = 0x00010411
 [D2] Excluding peptide for query: [value], rank: [value] because [string]
static const msg_num_t LOGMSG_QUANT_EXCLUDING_PEPTIDE_GREATHAN = 0x00010413
 [D2] Excluding peptide for query: [value], rank: [value] because [string]. [value] > [value]
static const msg_num_t LOGMSG_QUANT_EXCLUDING_PEPTIDE_LESSTHAN = 0x00010412
 [D2] Excluding peptide for query: [value], rank: [value] because [string]. [value] < [value]
static const msg_num_t LOGMSG_QUANT_FINISH_CALC_COMPLETE = 0x00010406
 [D2] Finished calc_complete() call
static const msg_num_t LOGMSG_QUANT_FINISH_LOAD_CDB = 0x00010409
 [D2] Finished loadCdbFile() call
static const msg_num_t LOGMSG_QUANT_FINISH_REORDER_AFTER_MERGE = 0x0001041B
 [D1] Finished reordering of peptide matches after merge
static const msg_num_t LOGMSG_QUANT_FINISH_UPDATE_PROT_MATCHES = 0x00010404
 [D2] Finished updating protein matches
static const msg_num_t LOGMSG_QUANT_HELPER_TEST_REQUIRED = 0x00010800
 [D3] testRequiredMods(): sorted required mods="[string]", sequence="[string]", mods="[string]", iter=[char]
static const msg_num_t LOGMSG_QUANT_LOAD_PEP_STATUS_MATCHES = 0x0001040A
 [D2] Loading all peptide status values
static const msg_num_t LOGMSG_QUANT_LOADING_MATCHES = 0x0001040B
 [D2] Loading quantitation matches
static const msg_num_t LOGMSG_QUANT_OPENING_CACHE_FILE = 0x00010418
 [D2] Opening quantitation cache file [filename]
static const msg_num_t LOGMSG_QUANT_REAPPLY_THRESHOLDS = 0x0001040D
 [D2] Reapplying quantitation quality thresholds
static const msg_num_t LOGMSG_QUANT_REMATCHING_INFERRED = 0x00010410
 [D2] Rematching [value] inferred matches
static const msg_num_t LOGMSG_QUANT_REMOVE_INFERRED_MATCH = 0x00010415
 [D1] Removing inferred quantitation match [value] - [value] < [value]
static const msg_num_t LOGMSG_QUANT_REMOVE_MATCH_NO_EVIDENCE = 0x00010414
 [D1] Removing quantitation match [value] - no remaining evidence
static const msg_num_t LOGMSG_QUANT_START_CALC_COMPLETE = 0x00010405
 [D2] Calling calc_complete()
static const msg_num_t LOGMSG_QUANT_START_LOAD_CDB = 0x00010408
 [D2] Start of loadCdbFile() call. Cdb file: [filename], cache file: [filename]
static const msg_num_t LOGMSG_QUANT_START_REORDER_AFTER_MERGE = 0x0001041A
 [D1] Starting reordering of peptide matches after merge
static const msg_num_t LOGMSG_QUANT_START_UPDATE_PROT_MATCHES = 0x00010403
 [D2] Starting to update protein matches
static const msg_num_t LOGMSG_QUANT_UPDATE_EXCLUDED_MATCHES = 0x0001040E
 [D2] Updating excluded matches
static const msg_num_t LOGMSG_QUANT_UPDATING_PEP_EVIDENCE = 0x0001040C
 [D2] Updating Peptide Evidence
static const msg_num_t LOGMSG_REPORT_FUNCTION_CALLED_BY = 0x00010900
 [D3] [function], called by [string]
static const msg_num_t LOGMSG_REPORT_FUNCTION_ENTRY = 0x00010901
 [D3] [function] entered
static const msg_num_t LOGMSG_REPORT_FUNCTION_ENTRY_WITH_ARGS1 = 0x00010902
 [D3] [function]([args]) entered
static const msg_num_t LOGMSG_REPORT_FUNCTION_ENTRY_WITH_ARGS2 = 0x00010903
 [D3] [function]([args]) entered
static const msg_num_t LOGMSG_REPORT_FUNCTION_ENTRY_WITH_ARGS3 = 0x00010904
 [D3] [function]([args]) entered
static const msg_num_t LOGMSG_REPORT_FUNCTION_ENTRY_WITH_ARGS4 = 0x00010905
 [D3] [function]([args]) entered
static const msg_num_t LOGMSG_REPORT_FUNCTION_EXIT = 0x00010910
 [D3] [function] exited
static const msg_num_t LOGMSG_REPORT_FUNCTION_EXIT_WITH = 0x00010911
 [D3] [function] exited with [string]
static const msg_num_t LOGMSG_RESFILE_APPEND = 0x00010A00
 [D2] [string] numQueries=[num] cachedExpValues=[num]

Detailed Description

All errors are collected in an instance of this class.

Examples:

common_error.cpp, and tools_aahelper.cpp.


Member Typedef Documentation

typedef int msg_num_t [inherited]

Typedef for log and error message numbers.

See Using enumerated values and static const ints in Perl, Java, Python and C#.

Logging messages are classified as:

  • [I] information
  • [D1] Debug level 1 message
  • [D2] Debug level 2 message
  • [D3] Debug level 3 message

Ranges:

ProductClassificationFirstLast
Parser sev_fatal, sev_warn 0x00000000 0x0000FFFF
sev_info, sev_debug1, sev_debug2, sev_debug3 0x00010000 0x0001FFFF
MSQuantlib sev_fatal, sev_warn 0x00020000 0x0002FFFF
sev_info, sev_debug1, sev_debug2, sev_debug3 0x00030000 0x0003FFFF
Purifier API sev_fatal, sev_warn, sev_info, sev_debug1, sev_debug2, sev_debug3 0x00040000 0x0004FFFF
Purifier sev_fatal, sev_warn, sev_info, sev_debug1, sev_debug2, sev_debug3 0x00050000 0x0005FFFF
Mascot Server sev_fatal, sev_warn 0x00000000 0x0000FFFF
sev_info, sev_debug1, sev_debug2, sev_debug3 0x00060000 0x0006FFFF
MDRO sev_fatal, sev_warn, sev_info, sev_debug1, sev_debug2, sev_debug3 0x4C020000 0x4C03FFFF

Member Enumeration Documentation

enum msg_sev [inherited]

Message severity levels.

See Using enumerated values and static const ints in Perl, Java, Python and C#.

See also: ms_loggingmonitor::Level_e

Enumerator:
sev_fatal 

A fatal error that results in the object being 'invalid'.

sev_warn 

A warning message.

sev_info 

Information message.

sev_debug1 

Debug level 1 message.

sev_debug2 

Debug level 2 message.

sev_debug3 

Debug level 3 message.


Constructor & Destructor Documentation

ms_errs ( msg_sev  loglevel = sev_warn,
bool  combineRepeats = true,
ms_loggingmonitor::Source_e  api = ms_loggingmonitor::SRC_MSPARSER 
)

Constructor.

This constructor is generally for Matrix Science use only.

Parameters:
loglevelshould specify the maximum level of logging for this object. A different level can be specified for ms_loggingmonitor, so ms_log::sev_fatal or ms_log::sev_warn is normally sufficient here.
combineRepeatsshould be set to true to avoid multiple occurences of the same message appearing in the list of messages.
apineeds to be specified when using this class inside an api or application other than Mascot Parser.

Member Function Documentation

void addToCatalog ( const msg_catalog_t  catalog[],
size_t  numEntries,
ms_loggingmonitor::Source_e  src,
errorOrLogMessages_e  errorOrLogMessages 
) [inherited]

Add messages to the fast lookup map.

Parameters:
catalogis a pointer to an array of messages and severities
numEntriesis the number of entries in catalog
srcis used to check if the messages have already been added to the static catalog_ map.
errorOrLogMessagesis used, with src to check if the messages have already been added to the static catalog_ map.
void appendErrors ( const ms_errs src )

Copies all errors from another instance and appends them at the end of own list.

Mostly used internally, but can be useful for appending errors from one object into another object

Parameters:
srcis the error list to copy from.
void clearAllErrors (  )

Remove all errors from the current list of errors.

All errors, warnings, information and debug messages are accumulated into a list in this object, until this function is called.

See also:
getNumberOfErrors()
Examples:
tools_aahelper.cpp.
ms_errs::msg_sev convertFromLogLevel ( ms_loggingmonitor::Level_e  logLevel ) [static]

Convert the ms_loggingmonitor level to an ms_errs severity.

Note that this function will not work with a mask that is created by bitwise ORing these enums together.

See also:
ms_errs::convertToLogLevel
Parameters:
logLevelis the logging level
Returns:
the original Parser severity message level
ms_loggingmonitor::Level_e convertToLogLevel ( ms_errs::msg_sev  severity ) [static]

Convert the ms_errs severity level to a ms_loggingmonitor level.

See also:
ms_errs::convertFromLogLevel
Parameters:
severitywill be sev_fatal, sev_warn etc
Returns:
the ms_loggingmonitor level that can be bitwise or'ed used with the return from ms_loggingmonitor::getLogMask()
void forwardToParentInstance ( ms_errs parent )

Enable all messages from one object to be forwarded to another.

When a parser object that uses ms_errs creates another object that uses a different ms_errs instance, it either has to call appendErrors() after calling any methods in the created object or it can just call this function on the created object to get all errors just recorded in the 'parent' object.

The ms_errs destructor tidies up the links between the two (or more) objects.

As many objects as required can use the same instance.

Parameters:
parentis the object that messages will be stored in. If a value of zero is passed, this just removes any existing references.
bool getCombineRepeats (  ) const

Get the flag for whether to merge repeated error messages.

The default is to combine repeated error messages.

Returns:
Will be true if identical error messages are combined into a single message.
int getErrorNumber ( const int  num = -1 ) const

Return a specific error number or ERR_NO_ERROR.

To return a particular error, warnings, information or debug messages from the list of messages, call this function with a number 1..getNumberOfErrors(). Passing a value of -1 will return the last error, or ERR_NO_ERROR.

Parameters:
numshould be a value in the range 1..getNumberOfErrors()
Returns:
the error number for item num in the list. If an invalid number is passed, ERR_NO_ERROR will be returned.
Examples:
common_error.cpp, and http_helper_getstring.cpp.
int getErrorRepeats ( const int  num = -1 ) const

Returns a number of times the specified error has been repeated.

Parameters:
numshould be a value in the range 1..getNumberOfErrors()
Returns:
The number of times the specified message was repeated or 0 if there are no messages in the list.
Examples:
common_error.cpp, and http_helper_getstring.cpp.
ms_errs::msg_sev getErrorSeverity ( const int  num = -1 ) const

Returns the severity of the specified error, warning, information or debug message.

Parameters:
numshould be a value in the range 1..getNumberOfErrors()
Returns:
The severity level. If an invalid number is passed, or if there are no messages or errors in the list then ms_errs::sev_warn is returned.
std::string getErrorString ( const int  num ) const

Returns a specific error as a string.

To return a particular error, warnings, information or debug messages from the list of messages, call this function with a number 1..getNumberOfErrors(). Passing a value of -1 will return the last error, or an empty string.

Parameters:
numshould be a value in the range 1..getNumberOfErrors() If an invalid number is passed, an empty string will be returned.
Returns:
The specified error, warning, information or debug message string
Examples:
common_error.cpp, and http_helper_getstring.cpp.
int getLastError (  ) const

Return the last error number or ERR_NO_ERROR if no errors.

This function returns the last error, warning, information or debug message from the list of messages in this object.

This function is implemented by calling: getErrorNumber(-1)

Returns:
the Error number for the last message in the list of messages
std::string getLastErrorString (  ) const

Return the last error number or an empty string.

This function returns the last error, warning, information or debug message from the list of messages in this object

Same as calling getErrorString() with -1 as a parameter.

Returns:
The most recent error, warning, information or debug message
Examples:
tools_aahelper.cpp.
std::string getLoggingFileName (  ) const

Return the name of the logging file.

Returns:
the name of the file where fatal errors, warning, informational and debugging messages are accumulated. If there is no log file, this string will be empty
ms_errs::msg_sev getLoggingLevel (  ) const [virtual]

Get the logging level.

The default logging level is ms_errs::sev_warn, so any messages with ms_errs::sev_info, ms_errs::sev_debug1, ms_errs::sev_debug2 or ms_errs::sev_debug3 will not be logged.

The same level is applied to messages stored internally in the list and to to the messages being written to the file specified using setLoggingFile()..

Returns:
level is the current logging level.

Implements ms_log.

ms_loggingmonitor::Source_e getMessageSource ( const ms_log::msg_num_t  msgNum ) const [inherited]

Return the component (library/application) that generated the specified log message.

The return value is based on the message number and determined from the table shown for msg_num_t above. If the value isn't in one of the above ranges, then ms_loggingmonitor::SRC_ALL will be returned.

Parameters:
msgNumNumeric code of the messaged to be logged
Returns:
the ms_loggingmonitor::Source_e value.
int getNumberOfErrors (  ) const

Return the number of errors since the last call to clearAllErrors().

The list of 'errors' can include fatal errors, warning messages, information messages and different levels of debugging messages.

If the logging level has been set to, for example ms_errs::sev_debug3 using setLoggingLevel(), then this function may return a positive number greater than zero even if isValid() returns true.

All errors are accumulated into a list in this object, until clearAllErrors() is called.

See Error Handling.

See also:
clearAllErrors(), getErrorNumber() and getErrorString()
Returns:
the number of errors, warnings, or other messages in the list.
Examples:
common_error.cpp, and http_helper_getstring.cpp.
bool isValid (  ) const

Returns TRUE if no errors occurred, FALSE otherwise.

The list of 'errors' can include fatal errors, warning messages, information messages and different levels of debugging messages. This function will return true unless there are messages which have the severity level of ms_errs::sev_fatal

Returns:
true unless there have been and fatal error messages
Examples:
tools_aahelper.cpp.
void setAPI ( ms_loggingmonitor::Source_e  api )

Sets the source API for the messages.

The ms_errs class is primarily used by Mascot Parser, but it may also be used by other Matrix Science APIs, such as MSQuantlib. Any other API should call this function, so that logging messages are recorded as coming from the correct API

Parameters:
apiis one of the ms_loggingmonitor::Source_e values
void setCombineRepeats ( const bool  flag )

Set the flag for whether to merge repeated error messages.

The default is to combine repeated error messages

Parameters:
flagshould be set to true to enable identical error message to be combined into a single message.
void setLoggingFile ( const std::string  filename,
const msg_sev  level 
)

Set the logging file.

It is generally easier to use Logging using ms_loggingmonitor than to use this function.

Parameters:
filenameshould be set to a valid filename, or an empty string to disable also saving to a log file.
levelis the logging level. See also getLoggingLevel() and setLoggingLevel(). The same level is applied to messages stored internally in the list and to to the messages being written to the specified filename.
void setLoggingLevel ( const msg_sev  level )

Set the logging level.

The default logging level is ms_errs::sev_warn, so any messages with ms_errs::sev_info, ms_errs::sev_debug1, ms_errs::sev_debug2 or ms_errs::sev_debug3 will not be logged.

This logging level is quite separate from the one used by ms_loggingmonitor. Call ms_loggingmonitor::setLogMask to enable a different level of logging. For example, you would normally only want ms_errs::sev_fatal and possibly ms_errs::sev_warn messages in any parser object so that you can report errors back to the user. You wouldn't want to fill the object with logging and information messages.

See also getLoggingLevel()

Parameters:
levelis the logging level. The same level is applied to messages stored internally in the list and to to the messages being written to the file specified when calling setLoggingFile
bool willMessageBeLogged ( const msg_num_t  msgNum ) const [inherited]

Check to see if the message will be logged to a file or recorded anywhere.

If the code to format a log message might take some time to run, it is worth calling this function first to see if the message will be logged or used anywhere.

Parameters:
msgNummust be a valid error number
Returns:
true if the message will be logged, or returned by getErrorString()
bool willMessageBeLogged ( const ms_errs::err  errorNum ) const

Check to see if the message will be logged to a file or recorded anywhere.

If the code to format a log message might take some time to run, it is worth calling this function first to see if the message will be logged or used anywhere.

Parameters:
errorNummust be a valid error number
Returns:
true if the message will be logged, or returned by getErrorString()

Member Data Documentation

const err ERR_MSP_SECURITY_BAD_GROUP_NAME = 0x1009 [static]

[W] Invalid group name - names cannot contain the following characters:

><\\/`;,+*"
const err ERR_MSP_SECURITY_BAD_USER_NAME = 0x1004 [static]

[W] Invalid user name - names cannot contain the following characters:

><\\/`;,+*"

The documentation for this class was generated from the following files:

Copyright © 2022 Matrix Science Ltd.  All Rights Reserved. Generated on Thu Mar 31 2022 01:12:32