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
throw new IllegalArgumentException('Strings must not be null');
How do i give the above java line in Apex
In the visualforce page add:
<apex:page ... ><apex:form id="f1"> <apex:pagemessages />.....</apex:form> </apex:page>
Then in the controller class, add:
ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.FATAL, 'String must not be null');ApexPages.addMessage(msg);
This shoould be given in a apex class not in VF
You need to create an exception class for this, then you can throw your own custom exception.
In the visualforce page add:
Then in the controller class, add:
This shoould be given in a apex class not in VF
You need to create an exception class for this, then you can throw your own custom exception.