Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved


Chapter 4 AMI API : AMI C API Error Functions : ami_ErrorCreate(), ami_errorCreateV()

ami_ErrorCreate(), ami_errorCreateV()
Functions
Declaration
ami_Error ami_ErrorCreate(
int inErrorCode,
const char * inpTemplate,
... );
 
ami_Error ami_ErrorCreateV(
int inErrorCode,
const char * inpTemplate,
va_list inArguments );
Purpose
Creates a new AMI error for the specified error code and descriptive text. Descriptive text is specified as a template (printf format) and substitution arguments. If error creation fails then an error describing this failure is returned in place of the specified error.
The ami_Error is an object handle representing allocated resources and must be destroyed using the ami_ErrorDestroy() function or memory will be leaked. The AMI C API application must destroy any ami_Error instances returned by an AMI C API function call. It must also destroy any ami_Error instance it explicitly creates with the exception of ami_Error instances returned to the AMI C API from a method invocation callback function.
Parameters
 

Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved