I'm finally getting around to testing various applications with
ColdSpring 1.0 (which are currently running on .5 in production) and I
find that the exceptions are much more helpful than previous
versions-- thanks!  One caveat; it doesn't tell you the name of the
item which cannot be found.

For example, here are a couple of exceptions:

15:34:37.037 - coldspring.beanDefException - in
C:\wwwroot\Coldspring_1.0\beans\BeanDefinition.cfc : line 168
            property requested does not exist for bean: BadMojoFactory
        

15:34:37.037 - coldspring.beanDefException - in
C:\wwwroot\Coldspring_1.0\beans\BeanDefinition.cfc : line 140
            constructor-arg requested does not exist for bean: SessionManager
        

Perhaps it would be a good idea to tell the developer the name of the
properties, constructor -arg's, etc which are missing?  For instance,
I updated BeanDefinition.cfc (167:168) to throw this exception:

<cfthrow type="coldspring.beanDefException"
                                         message="property requested 
(#arguments.propertyName#) does not
exist for bean: #getBeanID()# "/>

Which now looks like:

15:36:12.089 - coldspring.beanDefException - in
C:\wwwroot\Coldspring_1.0\beans\BeanDefinition.cfc : line 168

            property requested (Messaging) does not exist for bean: 
BadMojoFactory


Seems like a simple change and something to consider for thrown
exceptions for missing properties, etc?

Thanks,

- Brandon       

--
http://devnulled.com

Reply via email to