问题
I need to create a custom exception. But I dont have a clue where to store the file. In my opinion is app/Errors/NameException.php the right place. Is it?
回答1:
That is a fine place to store your Exceptions. The final choice does not matter much as there is no convention set for this type of classes. The autoloader will find them anyway if you declare them correctly.
来源:https://stackoverflow.com/questions/27410054/where-i-store-the-custom-exceptions-in-cakephp-3