Created
March 7, 2024 06:08
-
-
Save vikaskanani/a5f92dee6558ce903b452f63d37c28fd to your computer and use it in GitHub Desktop.
Custom throw in cfml
This file contains 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 { | |
throw( | |
message="MyError", | |
errorcode="100", | |
detail="Error Detail" | |
); | |
} catch (any e) { | |
writeOutput("Caught Exception: " & e.message & " with errror code: " & e.errorcode & " and detail: " & e.detail); | |
} | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment