2009年7月1日星期三

Re: [fw-mvc] Error handling

try {
// do sth
} catch (Exception $e) {
// do sth
Your_Logger::error($e);
}

Regards,
Saša Stamenković


On Wed, Jul 1, 2009 at 11:06 PM, Ed Lazor <edlazor@internetarchitects.biz> wrote:
Is it best to create your own exception classes and build them with
built-in logging or do you recommend a different approach?  I'm
noticing that the zend exception classes are all empty - is that
because they're just used to define different types of exceptions?

-Ed

没有评论: