I see onException listed as an interception point and also listed when
talking about customer framework error handling, but it isn't clear to
me whether you have to set up an ExceptionHandler and
CustomerErrorTemplate in your coldbox.xml file to get onException
working of if it will listen to exceptions regardless of those
settings.
I know that the interceptor is registered correctly because my custom
intercept point is working. It is my understanding that I don't need
to announce this one because onException is a built in point. So I
should, I believe, just be able to define an onException method in my
intercept and it will get added to the list of things that listen for
exceptions, correct?
I do not have custom error handling defined in my app, so if I have an
error somewhere, I'd expect the framework to log the error and then
also see an additional error logged from my intercept that says "An
error occurred". Is that correct?
Currently, when I induce an error in my code by saying "foo = ;" in a
handler method somewhere, I see the exception logged by the framework
in my log file but nothing seems to be happening inside the
onException method I defined.
Also, what data should I have access to in this method? Is it the
cferror struct thrown by Coldfusion? Or is it an exception bean
created by Coldbox?