getMessageCode
getMessageCode()

The getMessageCode method returns the internal error code associated with an Advisory Message object if the status level is 2 (STATUS_LEVEL_ERROR).

Return value

The AdvisoryMessage object returns an integer.

Example

The following method prints out the message code of an AdvisoryMessage object.

public static void printMessageCodeOfWarningOrError(String command,AdvisoryMessage[] messages)
{
System.out.println("Calling "+command);
for(AdvisoryMessage msg : messages)
{
System.out.println(msg.getMessageCode());


IBM Unica Interact
 
8.5.0
For more information, see our support and community site: Customer Central