downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

Yaf_Dispatcher::setRequest> <Yaf_Dispatcher::setDefaultModule
[edit] Last updated: Fri, 24 May 2013

view this page in

Yaf_Dispatcher::setErrorHandler

(Yaf >=1.0.0)

Yaf_Dispatcher::setErrorHandlerDéfinit un gestionnaire d'erreur personnalisé

Description

public Yaf_Dispatcher Yaf_Dispatcher::setErrorHandler ( call $callback , int $error_types )

Définit un gestionnaire d'erreur personnalisé pour Yaf. Lorsque application.dispatcher.throwException est désactivé, Yaf va lancer une erreur attrapable lorsqu'une erreur inattendue survient.

Aussi, ce gestionnaire d'erreur sera appelé lorsqu'une erreur survient.

Liste de paramètres

callback

Une fonction de rappel.

error_types

Valeurs de retour

Voir aussi



add a note add a note User Contributed Notes Yaf_Dispatcher::setErrorHandler - [1 notes]
up
0
gianjason#gmail.com
4 months ago
eg:

<?php $dispatcher->setErrorHandler(array(get_class($this),'error_handler')); ?>

 
show source | credits | stats | sitemap | contact | advertising | mirror sites