You need to sign in to do that
Don't have an account?
learn_cloudsf
Error handling in apex
what is the sysntax for catching errors in apex ?
What is exception handling in apex ?
What is exception handling in apex ?
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
An exception is a special condition that changes the normal flow of program execution.
Causes:
Your code expects a value from something that is currently null
An insert or update statement fails to pass a custom validation rule you have set
Assigning a query that returns no records or more than one record to a singleton sObject variable
Accessing a list index that is out of bounds
Syntax:
for more information.
https://developer.salesforce.com/page/An_Introduction_to_Exception_Handling
If it helps make it as best answer.
Thanks.
Please refer below link
https://developer.salesforce.com/page/An_Introduction_to_Exception_Handling
Important :
If this is what you were looking for then please mark it as a "SOLUTION" or You can Click on the "Like" Button if this was beneficial for you.