Apex Message Severity (Visual Reference)


Last week I found myself searching the web try to find an image showing each of the different Apex page message severities (i.e. the pretty image they each display to the left of the text). To my suprise I didn’t find anything and ended up going with trial and error… so for future reference and for fellow Apex developers I’ve produced the image below, I hope it helps you out:

Apex Severity

As a reminder the Message Class can be used like this:

ApexPages.Message myMsg = new ApexPages.Message(ApexPages.severity, summary);

…and the severities are:

  • INFO

For more help on this topic check out the official Visualforce documentation.

  • gus

    Thanks. Just what I was looking for.

  • Narasimha

    Ya its too good!
    Thanku so much

  • sagar

    it is simply excelent………..

  • Sergio

    Just remember to use:


    instead of:


    in your Visualforce pages!