Thats a great idea.  So I changed my cfthrow code to this:

<cfset arguments.event.setValue("ErrorMessage","Invalid ERID")>
<cfthrow message="" />

Then added this to my exception template:

<cfif Len(viewstate.getValue("ErrorMessage"))>
        <p>Error: <cfoutput>#viewstate.getValue("ErrorMessage")#</cfoutput></
p>
</cfif>

But it doesn't seem to work, ErrorMessage is always blank.  Can I set
a value (an error message) in the controller and then be able to pick
it up in the exception view file?

-- 
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog

You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

Reply via email to