Initializing help system before first use

problem.getmessagetype

problem.getmessagetype


Purpose
Retrieve the message type corresponding to a message number
Synopsis
type = problem.getmessagetype (code)
Arguments
code 
The message number.
type 
The message type.
Example
The following example retrieves the last error message and finds its type.
(code, a) = p.getlasterror ()
type = p.getmessagetype (code)
print ("Error of type ", type)

Further information

The possible values returned in type are:

0   no such message number
1   information
3   warning
4   error


Related topics