function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
<apex:page action="{!redirectAfterException}" controller="exceptionPageCtrl" > </apex:page>
public class exceptionPageCtrl { public PageReference redirectAfterException() { try { Integer i=0; Integer j=1; j=j/i; } catch(Exception ex) { return Page.page1; } return null; } }
You can use action instead of constructor and redirect to the page in catch segment.
Here is sample code:
VF Page: And controller:
Please let me know if you have any question.
Thanks & Regards
Gulshan Raj