Zend Framework Forum

Go Back   Zend Framework Forum > Zend Framework General discussions > General Q&A on Zend Framework

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-09-2009, 04:20 PM
Junior Member
 
Join Date: Oct 2009
Posts: 3
Default Custom Exceptions

Dear ZF-guru's,

The past few days I've tried to sort out the error handling in ZF, I quite like the idea of throwing custom Exceptions, like so:

Handling errors in Zend Framework | CodeUtopia - The blog of Jani Hartikainen

However, if I want it to work like it says of there, where do I put which exception class?

For example I have a userController that I want to be able to throw a userNotFoundException in case (as the name suggests) the user is not found.

Where would I put the userNotFoundException class? And would I let it extend the Zend_Exception class?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
custom, error, exceptions

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT. The time now is 05:54 PM.


Designed by: Miner Skinz Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0