I am trying to throw a custom exception, which then gets rendered by my custom AppExceptionRenderer class (which I've already made).
I've read this CakePHP 2.x Cookbook - Creating your own application exceptions but it seems to have various unanswered/undocumented questions.
Where is the core class
CakeException
? I can't find this anywhere inlib/Cake/
. My exception class has to extend this but I have no idea what the path needs to be forApp::uses()
. I also can't look at the class to see what I need to do with my class or which properties I can use from the parent class.Where am I supposed to put my custom exception class? I was going to put it in
app/Lib/Error/Exception/
because I have no better ideas and the documentation doesn't say anything about this.
Edit: Has the CakeException class been removed in Cake 2.4?