208 some xception handling for creating intance
This commit is contained in:
+1
-1
@@ -57,7 +57,7 @@
|
|||||||
|
|
||||||
//variables.framework.docs={};
|
//variables.framework.docs={};
|
||||||
variables.framework.docs.APIName="svc-api";
|
variables.framework.docs.APIName="svc-api";
|
||||||
variables.framework.docs.APIVersion="0.207"; /*$ git config --global --unset user.password*/
|
variables.framework.docs.APIVersion="0.208"; /*$ git config --global --unset user.password*/
|
||||||
|
|
||||||
variables.framework.globalHeaders = structNew();
|
variables.framework.globalHeaders = structNew();
|
||||||
variables.framework.globalHeaders["Access-Control-Expose-Headers"] = "Location";
|
variables.framework.globalHeaders["Access-Control-Expose-Headers"] = "Location";
|
||||||
|
|||||||
@@ -355,8 +355,20 @@
|
|||||||
<cfargument name="companyUid" 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 var local={}/>
|
||||||
|
|
||||||
|
|
||||||
<cfset local.instanceUid=#createGUID()#/>
|
<cfset local.instanceUid=#createGUID()#/>
|
||||||
|
|
||||||
<cftry>
|
<cftry>
|
||||||
|
|||||||
Reference in New Issue
Block a user