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, 17 May 2013

view this page in

Yaf_Dispatcher::setErrorHandler

(Yaf >=1.0.0)

Yaf_Dispatcher::setErrorHandlerエラーハンドラを設定する

説明

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

Yaf のエラーハンドラを設定します。application.dispatcher.throwException がオフの場合は、予期せぬエラーが発生した場合に Yaf はキャッチ可能なエラーを発生させます。

従って、このエラーハンドラが呼ばれる一方でエラーも発生します。

パラメータ

callback

コールバック。

error_types

返り値

参考



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