208 some xception handling for creating intance

This commit is contained in:
2026-02-13 22:51:12 +03:00
parent 6efb0367d2
commit e6ab5d0735
2 changed files with 14 additions and 2 deletions
+13 -1
View File
@@ -354,8 +354,20 @@
<cfargument name="usrUid" type="string" required=true hint="type:guid"/>
<cfargument name="companyUid" type="string" required=true hint="type:guid"/> --->
<!--- оказывается, их можно и не декларировать --->
<cfif !structKeyExists(arguments, "specificationId")>
<cfreturn representationOf("arguments.specificationId not defined").withStatus(500)/>
</cfif>
<cfif !isValid("integer", arguments.specificationId)>
<cfreturn representationOf("arguments.specificationId is not a valid integer (specification not defined)").withStatus(500)/>
</cfif>
<cfif !(arguments.specificationId GT 0)>
<cfreturn representationOf("specification not defined (arguments.specificationId should be a posititve integer)").withStatus(500)/>
</cfif>
<cfset var local={}/>
<cfset local.instanceUid=#createGUID()#/>