Files
svc-api-x/v1/resources/bk/test2.cfc.bak
T
2025-09-10 20:19:02 +03:00

26 lines
891 B
Plaintext

<cfcomponent extends="taffy.core.resource" taffy:uri="/test2">
<cfsilent>
<cfimport prefix="m" taglib="../lib"/>
<cfset this.helper=CreateObject("component","lib.rest_api_helper")/>
</cfsilent>
<cffunction name="get" hint="генерирует ошибку 500">
<!--- <cfargument name="svcOperationId" required=true hint="int"/> --->
<!--- <cftry>
<cfset this.helper.validateField(arguments, "svcOperationId", "integer")/>
<cfcatch type="invalidParamValue">
<cfreturn representationOf(this.helper.formatBadRequestError(cfcatch)).withStatus(400)/>
</cfcatch>
</cftry> --->
<!--- <cfdump var=#request#/><cfabort/>--->
<cffile action="read" file="/usr/lib/serverHome/WEB-INF/web.xml" variable="fcontent" />
<!--- <cfdump var=#userdata#/><cfabort/> --->
<cfreturn representationOf("Some error").withStatus(500) />
</cffunction>
</cfcomponent>