try{} - fire and forget

Description

I find myself writing a lot of try/catch blocks where I don’t care if an exception occurs (such as when I try to delete a file that doesn’t exist. It’s gone, so win!). Not including the catch block throws another exception I am just trying to prevent the first exception from stopping work - can the parser forget about the catch if it doesn’t exist? Less work for the server to not have to process anything, and less silly code for me to write.

Activity

Details

Assignee

Reporter

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Priority

Created 22 March 2022 at 16:48
Updated 22 March 2022 at 16:48