[Coldbox 4] exception handler

Hello!

Does the info at http://wiki.coldbox.org/wiki/ExceptionHandling.cfm still apply in Coldbox 4? Specifically the 2nd paragraph titled “Global Exception Handler” ? I’m reading the statement “…ColdBox will also place an object in the request collection called exceptionBean.”. I believe it worked in 3.8 but now I get “Element EXCEPTIONBEAN is undefined in RC.”. I could be imagining that it was working the way I had things set in 3.8 but I believe it was working.

Thank you!

Irv Wilson

I didn’t think that was changed, but perhaps it was. What do you see if you dump the rc?

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

struct
NAMESPACE [empty string]
NAMESPACEROUTING [empty string]
clery [empty string]
event myaccount.www.police.psu.edu

Actually, looking at the code in Bootstrap.cfc, it looks like it’s now prc.exception.

// Store exception in private context
event.setValue( “exception”, oException, true );

I’ll add that to the compatibility doc.

And to answer your original question, most of the wiki applies to ColdBox 4.0, but is technically locked at 3.8.x. The new GitBook is going to be the 4.0 docs going forward so we’re working on bringing over all the old wiki content, updating it, and figuring out what to keep as we go.

http://coldbox.ortusbooks.com/content/

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Changed to prc and “exception” rather than “exceptionBean” and works fine.

Thank you!