My exception handler is “ehMain.onException”. As such, I have the following line in my config file:
exceptionHandler = “ehMain.onException”,
You are not supposed to call the exception handler directly. For instance, if you are typing the following in your web browser:
then you’re doing it wrong. That will surely error because there is no exception bean in the request collection.
If you want to test your exception handler, then you need to purposely create an error in another, real handler and ColdBox will automatically call the exception handler for you and it will pass in the exception bean.
Does that make sense?