function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Doubt on sites Exception handling



   I developed sites pages and gave login access to my customer portal users.I made a callout in one of the Vf page in my site. whenever the callout failed, salesforce sites throw me to the Site Exception page. 


   My doubt is can we show a custom message in the exception page according to the callout error?  or else Is it possible to  catch the exception of that callout and show it in the exception page.


  Need help on the above query?





murali krishna.ax1501murali krishna.ax1501

 catch(exception e){



rendre your cusrom page



add msg to perticular key name and catch by using


apexpages.getpera................get('you key '); and show it i your custom page



i think you can go like this