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:
As a reminder the Message Class can be used like this:
ApexPages.Message myMsg = new ApexPages.Message(ApexPages.severity, summary);
…and the severities are:
For more help on this topic check out the official Visualforce documentation.