You need to sign in to do that
Don't have an account?
Kakasaheb EK
How to capture the system error message of Helper class in Salesforce.?
Hi All,
I have controller & Helperclass.
Here I am calling all DML operation in helper class through controller, but somes times error will come in Helper class
so I can't capture this system messages.
please give me soultion to capture the system messages(say validation error message).
Thanks in Advance.
Sachin.
I have controller & Helperclass.
Here I am calling all DML operation in helper class through controller, but somes times error will come in Helper class
so I can't capture this system messages.
please give me soultion to capture the system messages(say validation error message).
Thanks in Advance.
Sachin.
You can use try-catch block in helper class and
whenever the error is occurs the cursor go into the catch section and you can return the error message.
Thanks.