The API actually changed a couple versions back, so how you'd actually call this is `ErrorHandler::apply('lithium\action\Dispatcher::run', $conditions, function($exception, $params) { ... })`, and for object instances it's `ErrorHandler::apply([$object, 'method'], $conditions, function($exception, $params) { ... })`.