getAdvisoryMessages

The getAdvisoryMessages method returns an array of Advisory Messages from the Response object.

getAdvisoryMessages()

Return value

The getAdvisoryMessages method returns an array of Advisory Message objects.

Example

The following example gets the AdvisoryMessage objects from a Response object and iterates through them, printing out the messages.

AdvisoryMessage[] messages = response.getAdvisoryMessages();
    for(AdvisoryMessage msg : messages)
    {
        System.out.println(msg.getMessage());
        // Some advisory messages may have additional detail:
        System.out.println(msg.getDetailMessage());
    }