Skip to main content
July 30, 2008
Question

<cftry>

  • July 30, 2008
  • 2 replies
  • 356 views
Just wondering when using a cftry what type do you use when your working with cffile?
    This topic has been closed for replies.

    2 replies

    Inspiring
    July 30, 2008
    > 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
    Inspiring
    July 30, 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/