Method that clears all errors and warnings. This method returns a failure if there are any active message sections (indicated by the IsMessageSectionActive property).