How can i catch Too many scripts :200001 exception , i can only see it in the debug logs..but i want to catch and handle it like m handling Callout Exception for 100000 limit exception in my webservice calls.
Just to be clear - governor limits are still enforced in certificated applications. There is no difference in governor limits for apex code that runs in a certified app or uncertified app.
How can i catch Too many scripts :200001 exception , i can only see it in the debug logs..but i want to catch and handle it like m handling Callout Exception for 100000 limit exception in my webservice calls.
Any Help will be appreciated..
Thanks.
You won't be able to catch this governor limit runtime exception as stated here
But you can do two helpful things to identify this limit. Use the Limit Apex class and Governor Limit Emails.
By using the Limit apex in your code, you can check if you are close to reaching the limit and throw your own exception to handle.