You need to sign in to do that
Don't have an account?
Nikhil Banait
Why Force.com sites redirects to “Authorization Required” page when any Apex Exceptions occurs?
Why Force.com sites redirects to “Authorization Required” page when any Apex Exceptions occurs?
“Unauthorized” page makes sense in case of missing access problem.
But in case of Exceptions ideally the redirect should be the “Exception” page.
I want my site redirect to 'Generic Error Page' i.e. Exception page when any Apex Exceptions occurs.
How can I achieve this?
Any help will be appreciated.
“Unauthorized” page makes sense in case of missing access problem.
But in case of Exceptions ideally the redirect should be the “Exception” page.
I want my site redirect to 'Generic Error Page' i.e. Exception page when any Apex Exceptions occurs.
How can I achieve this?
Any help will be appreciated.
How can I implement your answer in apex code?
In catch block, how to redirect to the 'Generic Error Page' i.e. Exception page?
try {
//some code that might fail
} catch (Exception e) {
//this will run if something goes wrong in the try block
return Page.ErrorPage;
}