208 some xception handling for creating intance
This commit is contained in:
@@ -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()#/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user