Exclude only timeout exception

I have some processing logic just to exclude a timeout. Can I specify some type for the cfcatch tag that allows it to catch only the timeout? Right now I was catching all the exceptions and was looking for a "time limit" in cfcatch.message . It looks awful. Also, my current code may catch some kind of custom exception with a “time limit” in the message, which is not really a “timeout”.

+4
source share
1 answer

Wow, found. <cfcatch type="coldfusion.runtime.RequestTimedOutException"> Works fine. I can swear I tried this before. I don’t know how I missed that it works. So stupid.

+5
source

All Articles