exceptions

Advanced exception handling in Drupal 7

Earlier this year Drupal core developers were getting a strange error message while developing Drupal 7:

Fatal error: Exception thrown without a stack frame in Unknown on line 0

This was causing a lot of head scratching because it doesn't provide any information about what caused it.

Drupal 7 uses exceptions more than any previous version of Drupal and this turned out to be the problem.

PHP exceptions are handled in one of two ways:

Syndicate content