Created
May 19, 2025 14:00
-
-
Save trycf/9428c3c11365ff9231fd6d6a1d23ce75 to your computer and use it in GitHub Desktop.
TryCF Gist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
try { | |
result = 10 / 0; | |
} | |
catch (expression e) { | |
writeOutput("Error caught: " & e.message); | |
} | |
catch (any e) { | |
writeOutput("Unknown Error: " & e.message); | |
} | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment