This content has been marked as final. Show 8 replies
The other alternative is to store all the form variables as session variables and repopulate the form after you send the user back.
Originally posted by: NoonEclipse
I can trap application errors, but I would really only like to look at this particular error. I see embedded in the CFCATCH structure the string "$InvalidUploadTypeException". Is there a list of such exception strings? Is there a place to find this without searching through the CFCATCH structure?
Thanks for your help.
There is no list of exceptions and such a list would change with every release or patch (still would be good if Adobe published the list).
Yes, you must dive through the catch info, as sucky as that may be. There is no other ¿legal? way to get a list of exception types and there are at least 800 (roughly) possible exceptions as of CF 7.02.
You might be alert for such things as:
But you didn't hear that from me! ;-)
I appreciate the info, although I am surprised that there isn't a better way. Most other languages make it simple and give you an error code or status code. Strange that ColdFusion does not.
How did you generate this list? Other than creating every error and seeing what popped up?
I appreciate the help.
BTW, there is a little help at:
As for that list, alas, I'm not allowed to say where I got it (damn lawyers) and there is nothing but names. You have to imagine what might trigger each.
Adobe would be wise to keep a current list in live docs (except for MAYBE any "sensitive" items**). It would help them and it would help us.
** Of course, if such items came up in an error dump, they would eventually be revealed and probably first to the very worst eyes (hackers and competitors are the best at ferreting out such info).
Amazing. Now why would hiding error information be a security problem? All of this is on the error page anyway, so they can be figured out. IF you want to wast the time doing it, and assuming that all of the strings relate to something meaningful.
I wonder if someone is just trying to protect their job? (If I don't tell people what the errors are they have to keep coming to me...) On the other hand, maybe they just don't want to make if easier for developers.
If I get fed up enough I will just move to another platform that does make such things easy.
Thanks for your sharing your knowledge.
> Adobe would be wise to keep a current list in live docs (except for MAYBE any
> "sensitive" items**). It would help them and it would help us.
The CFMX8 beta is coming up. Get onto it, and make a feature request. Or
remind me in a couple of weeks and I'll do it. It's a good suggestion.
(Perhaps best to submit a standard feature request now...)
I have requested this feature. It was amazingly difficult to find where to do it, but I persevered and managed to do it.
Thanks for the suggestion Adam.
> I have requested this feature. It was amazingly difficult to find where to do it, but I persevered and managed to do it.
> Thanks for the suggestion Adam.
I'll keep an eye out for it on the beta...