ThrowsAdvice help needed

2 views
Skip to first unread message

jax

unread,
Mar 19, 2008, 7:11:25 AM3/19/08
to ColdSpring-Users
I am playing around with an ThrowsAdvice advisor but it keeps
complaining..:

The argument EXCEPTION passed to function afterThrowing() is not of
type coldspring.aop.Method.

How do I get it to recieve the correct object? What's the syntaxt to
throw a correct exception?

jax

unread,
Mar 19, 2008, 8:26:31 AM3/19/08
to ColdSpring-Users
Never mind, found the problem..

I copied the throwsAdvice example code straight from the ColdSprings
docs. And that contains this line (which is faulty):

<cfargument name="exception" type="coldspring.aop.Method"
required="true" />

Should of course be:

<cfargument name="exception" type="coldspring.aop.Exception"
required="true" />

:-)

Brian Kotek

unread,
Mar 19, 2008, 10:02:53 AM3/19/08
to coldspri...@googlegroups.com
Yeah unfortunately (and as with just about every open source framework
I've seen) the documentation is pretty far out of date. One of these
days (ha) hopefully someone will update it and fix any mistakes. I'm
on Team Fusebox also and we've been trying for, literally, years to
get updated and thorough docs up. People offer to help but inevitably
succumb to real life tasks, and the few core group members are just
too busy to complete such a task. We've tried Wikis, creating
contributors guides, and more, but it doesn't matter unfortunately.
Reply all
Reply to author
Forward
0 new messages