I have a requirement, where I have to catch the error message in an
Trigger and have to display it on top of the Standard VF page.
What, I know, we can go for
Sobject.field.addError() to display the error, but it will appear below the field.
Is there any way where we can show the custom error message in a Standard VF page ?