Customer Portal

Suppressing FileNotFoundException

Comments 1

  • Avatar
    avackova
    0
    Comment actions Permalink
    Hello Tom,
    the exception can't be suppressed for one file, but if it doesn't exist any file conforming the wildcard pattern, the exception isn't thrown. So the problem can be bypassed by the adding the wildcard character somewhere in the path, where you are sure, that another file can't meet the pattern eg. fileURL="${DATAIN_DIR}/test.txt*".

Please sign in to leave a comment.