Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

<cftry>

Guest
Jul 29, 2008 Jul 29, 2008
Just wondering when using a cftry what type do you use when your working with cffile?
328
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 29, 2008 Jul 29, 2008
iirc, with cffile, the errors not related to tag syntax are of type
APPLICATION. at least that's what i use to catch a wrong file mime type...


Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 30, 2008 Jul 30, 2008
LATEST
> Just wondering when using a cftry what type do you use when your working with cffile?

I presume you mean with CFCATCH?

You could force the kind of exception you're expecting to occur, and dump
the results in the catch block.

If you're not worried about specific types of exception, one can just use
"any".

--
Adam
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources