Questions tagged [errorhandling]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
11 views

Is there a specific Exception for the API4 like CiviCRM_API3_Exception?

There is a specific Exception for the CiviCRM API3 called CiviCRM_API3_Exception. Is there a similar specific Exception for API4 or do I just catch the standard Exception?
1
vote
0answers
16 views

Errors not showing against custom fields using hook validateForm()

Using this code if ($fields["custom_111_79"] == 0) $errors["custom_111_79"] = "Please enter number of physio sessions"; The evaluation is done correctly, but the error message does not appear ...
2
votes
1answer
15 views

How do I call the Fatal Error Handler for extern/url.php?

I noticed my Fatal Error Handler wasn't being called when CiviCRM had problems processing trackable URLs in a CiviMail. My answer will tell you how to do this.
5
votes
1answer
60 views

Deadlocked queries cause an instant error for end-users, but are retried in other circumstances

We have a lot of smart groups, and consequently a lot of deadlocks. There's already code in Civi that detects deadlock Exceptions, and then retries the query a few times. This is really helpful - I ...