From 445974806df518e889037fbd0ab119ebf02cfea7 Mon Sep 17 00:00:00 2001 From: "J.C. Overgaard" Date: Tue, 28 Apr 2026 11:22:48 -0400 Subject: [PATCH] Refactor cfcatch parameters in cfcatch.json Add name parameter --- data/en/cfcatch.json | 33 +++++++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/data/en/cfcatch.json b/data/en/cfcatch.json index 942dd5874..3092fd3fd 100644 --- a/data/en/cfcatch.json +++ b/data/en/cfcatch.json @@ -5,10 +5,35 @@ "script":"catch (any e) { }", "related":["cftry","cffinally"], "description":"Used inside a cftry tag. Together, they catch and process\n exceptions in CFML pages. Exceptions are events that\n disrupt the normal flow of instructions in a CFML page,\n such as failed database operations, missing include files, and\n developer-specified events.", - "params": [ - {"name":"type","description":"`application`: catches application exceptions\n`database`: catches database exceptions\n`template`: catches ColdFusion page exceptions\n`security`: catches security exceptions\n`object`: catches object exceptions\n`missingInclude`: catches missing include file exceptions\n`expression`: catches expression exceptions\n`lock`: catches lock exceptions\n`custom_type`: catches the specified custom exception type that is defined in a cfthrow tag\n `java.lang.Exception`: catches Java object exceptions\n `searchengine`: catches Verity search engine exceptions\n `any`: catches all exception types","required":false,"default":"any","type":"string","values":["application","database","template","security","object","missinginclude","expression","lock","custom_type","searchengine","any"]} - - ], + "params": [ + { + "name": "name", + "description": "Variable name for cfcatch expression.", + "required": false, + "default": "", + "type": "string", + }, + { + "name": "type", + "description": "`application`: catches application exceptions\n`database`: catches database exceptions\n`template`: catches ColdFusion page exceptions\n`security`: catches security exceptions\n`object`: catches object exceptions\n`missingInclude`: catches missing include file exceptions\n`expression`: catches expression exceptions\n`lock`: catches lock exceptions\n`custom_type`: catches the specified custom exception type that is defined in a cfthrow tag\n `java.lang.Exception`: catches Java object exceptions\n `searchengine`: catches Verity search engine exceptions\n `any`: catches all exception types", + "required": false, + "default": "any", + "type": "string", + "values": [ + "application", + "database", + "template", + "security", + "object", + "missinginclude", + "expression", + "lock", + "custom_type", + "searchengine", + "any" + ] + } + ], "engines": { "coldfusion": {"minimum_version":"4", "notes":"", "docs":"https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-tags/tags-c/cfcatch.html"}, "lucee": {"minimum_version":"", "notes":"", "docs":"http://docs.lucee.org/reference/tags/catch.html"},