ApexPages Methods
The following are methods for
ApexPages
. All are instance methods.
addMessage(message)
Add a message to the current page context.
addMessages(exceptionThrown)
Adds a list of messages to the current page context based on a thrown exception.
currentPage()
Returns the current page's PageReference.
getMessages()
Returns a list of the messages associated with the current context.
hasMessages()
Returns
true
if there are messages associated with the current context,
false
otherwise.
hasMessages(severity)
Returns
true
if messages of the specified severity exist,
false
otherwise.
Previous
Next