class Cmpi::CMPIError
Representation of error information
Public Instance Methods
const char *message() { CMPIString *s = CMGetErrorMessage($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } /* Returns the perceieved severity of this error. */ CMPIErrorSeverity severity() { return CMGetPerceivedSeverity($self, NULL); } /* Returns the probable cause of this error. */ CMPIErrorProbableCause probable_cause() { return CMGetProbableCause($self, NULL); } %rename("probable_cause=") set_probable_cause(const char *pcd); /* Sets the description of the probable cause. */ void set_probable_cause(const char *pcd) { CMSetProbableCauseDescription($self, pcd); } /* Returns a string which describes the probable cause. */ %newobject probable_cause_description; const char *probable_cause_description() { CMPIString *s = CMGetProbableCauseDescription($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } /* Returns an array of strings which describes recomended actions. */ CMPIArray *recommended_actions() { return CMGetRecommendedActions($self, NULL); } %rename("recommended_actions=") set_recommended_actions(const CMPIArray* ra); /* Sets the recomended actions array. */ void set_recommended_actions(const CMPIArray* ra) { CMSetRecommendedActions($self, ra); } /* Returns a string which describes the Error source. */ %newobject source; const char *source() { CMPIString *s = CMGetErrorSource($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("source=") set_source(const char *es); /* Specifies a string which specifes The identifying information of the entity (i.e., the instance) generating the error. */ void set_source(const char *es) { CMSetErrorSource($self, es); } /* Returns a the format that the error src is in. */ CMPIErrorSrcFormat source_format() { return CMGetErrorSourceFormat($self, NULL); } %rename("source_format=") set_source_format(const CMPIErrorSrcFormat esf); /* Sets the source format of the error object. */ void set_source_format(const CMPIErrorSrcFormat esf) { CMSetErrorSourceFormat($self, esf); } /* Returns a string which describes the 'other' format, only available if the error source is OTHER. */ %newobject other_format; const char *other_format() { CMPIString *s = CMGetOtherErrorSourceFormat($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("other_format=") set_other_format(const char *oesf); /* specifies A string defining "Other" values for ErrorSourceFormat */ void set_other_format(const char *oesf) { CMSetOtherErrorSourceFormat($self, oesf); } /* Returns the status code of this error. */ CMPIrc status_code() { return CMGetCIMStatusCode($self, NULL); } /* Returns a string which describes the status code error. */ %newobject status_description; const char *status_description() { CMPIString *s = CMGetCIMStatusCodeDescription($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("status_description=") set_status_description(const char *cd); /* Sets the description of the status code. */ void set_status_description(const char *cd) { CMSetCIMStatusCodeDescription($self, cd); } /* Returns an array which contains the dynamic content of the message. */ CMPIArray *message_arguments() { return CMGetMessageArguments($self, NULL); } %rename("message_arguments=") set_message_arguments(CMPIArray* ma); /* Sets an array of strings for the dynamic content of the message. */ void set_message_arguments(CMPIArray* ma) { CMSetMessageArguments($self, ma); } }
Returns an array which contains the dynamic content of the message.
CMPIArray *message_arguments() { return CMGetMessageArguments($self, NULL); } %rename("message_arguments=") set_message_arguments(CMPIArray* ma); /* Sets an array of strings for the dynamic content of the message. */ void set_message_arguments(CMPIArray* ma) { CMSetMessageArguments($self, ma); } }
Sets an array of strings for the dynamic content of the message.
void set_message_arguments(CMPIArray* ma) { CMSetMessageArguments($self, ma); } }
const char *message_id() { CMPIString *s = CMGetMessageID($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } /* Returns a string combinating an error message. */ %newobject message; const char *message() { CMPIString *s = CMGetErrorMessage($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } /* Returns the perceieved severity of this error. */ CMPIErrorSeverity severity() { return CMGetPerceivedSeverity($self, NULL); } /* Returns the probable cause of this error. */ CMPIErrorProbableCause probable_cause() { return CMGetProbableCause($self, NULL); } %rename("probable_cause=") set_probable_cause(const char *pcd); /* Sets the description of the probable cause. */ void set_probable_cause(const char *pcd) { CMSetProbableCauseDescription($self, pcd); } /* Returns a string which describes the probable cause. */ %newobject probable_cause_description; const char *probable_cause_description() { CMPIString *s = CMGetProbableCauseDescription($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } /* Returns an array of strings which describes recomended actions. */ CMPIArray *recommended_actions() { return CMGetRecommendedActions($self, NULL); } %rename("recommended_actions=") set_recommended_actions(const CMPIArray* ra); /* Sets the recomended actions array. */ void set_recommended_actions(const CMPIArray* ra) { CMSetRecommendedActions($self, ra); } /* Returns a string which describes the Error source. */ %newobject source; const char *source() { CMPIString *s = CMGetErrorSource($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("source=") set_source(const char *es); /* Specifies a string which specifes The identifying information of the entity (i.e., the instance) generating the error. */ void set_source(const char *es) { CMSetErrorSource($self, es); } /* Returns a the format that the error src is in. */ CMPIErrorSrcFormat source_format() { return CMGetErrorSourceFormat($self, NULL); } %rename("source_format=") set_source_format(const CMPIErrorSrcFormat esf); /* Sets the source format of the error object. */ void set_source_format(const CMPIErrorSrcFormat esf) { CMSetErrorSourceFormat($self, esf); } /* Returns a string which describes the 'other' format, only available if the error source is OTHER. */ %newobject other_format; const char *other_format() { CMPIString *s = CMGetOtherErrorSourceFormat($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("other_format=") set_other_format(const char *oesf); /* specifies A string defining "Other" values for ErrorSourceFormat */ void set_other_format(const char *oesf) { CMSetOtherErrorSourceFormat($self, oesf); } /* Returns the status code of this error. */ CMPIrc status_code() { return CMGetCIMStatusCode($self, NULL); } /* Returns a string which describes the status code error. */ %newobject status_description; const char *status_description() { CMPIString *s = CMGetCIMStatusCodeDescription($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("status_description=") set_status_description(const char *cd); /* Sets the description of the status code. */ void set_status_description(const char *cd) { CMSetCIMStatusCodeDescription($self, cd); } /* Returns an array which contains the dynamic content of the message. */ CMPIArray *message_arguments() { return CMGetMessageArguments($self, NULL); } %rename("message_arguments=") set_message_arguments(CMPIArray* ma); /* Sets an array of strings for the dynamic content of the message. */ void set_message_arguments(CMPIArray* ma) { CMSetMessageArguments($self, ma); } }
const char *other_format() { CMPIString *s = CMGetOtherErrorSourceFormat($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("other_format=") set_other_format(const char *oesf); /* specifies A string defining "Other" values for ErrorSourceFormat */ void set_other_format(const char *oesf) { CMSetOtherErrorSourceFormat($self, oesf); } /* Returns the status code of this error. */ CMPIrc status_code() { return CMGetCIMStatusCode($self, NULL); } /* Returns a string which describes the status code error. */ %newobject status_description; const char *status_description() { CMPIString *s = CMGetCIMStatusCodeDescription($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("status_description=") set_status_description(const char *cd); /* Sets the description of the status code. */ void set_status_description(const char *cd) { CMSetCIMStatusCodeDescription($self, cd); } /* Returns an array which contains the dynamic content of the message. */ CMPIArray *message_arguments() { return CMGetMessageArguments($self, NULL); } %rename("message_arguments=") set_message_arguments(CMPIArray* ma); /* Sets an array of strings for the dynamic content of the message. */ void set_message_arguments(CMPIArray* ma) { CMSetMessageArguments($self, ma); } }
specifies A string defining “Other” values for ErrorSourceFormat
void set_other_format(const char *oesf) { CMSetOtherErrorSourceFormat($self, oesf); } /* Returns the status code of this error. */ CMPIrc status_code() { return CMGetCIMStatusCode($self, NULL); } /* Returns a string which describes the status code error. */ %newobject status_description; const char *status_description() { CMPIString *s = CMGetCIMStatusCodeDescription($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("status_description=") set_status_description(const char *cd); /* Sets the description of the status code. */ void set_status_description(const char *cd) { CMSetCIMStatusCodeDescription($self, cd); } /* Returns an array which contains the dynamic content of the message. */ CMPIArray *message_arguments() { return CMGetMessageArguments($self, NULL); } %rename("message_arguments=") set_message_arguments(CMPIArray* ma); /* Sets an array of strings for the dynamic content of the message. */ void set_message_arguments(CMPIArray* ma) { CMSetMessageArguments($self, ma); } }
const char *other_type() { CMPIString *s = CMGetOtherErrorType($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("other_type=") set_other_type(const char *ot); /* Sets the 'other' error type of this error object. */ void set_other_type(const char *ot) { CMSetOtherErrorType($self, ot); } /* Returns a string which describes the owning entity. */ %newobject owning_entity; const char *owning_entity() { CMPIString *s = CMGetOwningEntity($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } /* Returns a string which is the message ID. */ %newobject message_id; const char *message_id() { CMPIString *s = CMGetMessageID($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } /* Returns a string combinating an error message. */ %newobject message; const char *message() { CMPIString *s = CMGetErrorMessage($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } /* Returns the perceieved severity of this error. */ CMPIErrorSeverity severity() { return CMGetPerceivedSeverity($self, NULL); } /* Returns the probable cause of this error. */ CMPIErrorProbableCause probable_cause() { return CMGetProbableCause($self, NULL); } %rename("probable_cause=") set_probable_cause(const char *pcd); /* Sets the description of the probable cause. */ void set_probable_cause(const char *pcd) { CMSetProbableCauseDescription($self, pcd); } /* Returns a string which describes the probable cause. */ %newobject probable_cause_description; const char *probable_cause_description() { CMPIString *s = CMGetProbableCauseDescription($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } /* Returns an array of strings which describes recomended actions. */ CMPIArray *recommended_actions() { return CMGetRecommendedActions($self, NULL); } %rename("recommended_actions=") set_recommended_actions(const CMPIArray* ra); /* Sets the recomended actions array. */ void set_recommended_actions(const CMPIArray* ra) { CMSetRecommendedActions($self, ra); } /* Returns a string which describes the Error source. */ %newobject source; const char *source() { CMPIString *s = CMGetErrorSource($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("source=") set_source(const char *es); /* Specifies a string which specifes The identifying information of the entity (i.e., the instance) generating the error. */ void set_source(const char *es) { CMSetErrorSource($self, es); } /* Returns a the format that the error src is in. */ CMPIErrorSrcFormat source_format() { return CMGetErrorSourceFormat($self, NULL); } %rename("source_format=") set_source_format(const CMPIErrorSrcFormat esf); /* Sets the source format of the error object. */ void set_source_format(const CMPIErrorSrcFormat esf) { CMSetErrorSourceFormat($self, esf); } /* Returns a string which describes the 'other' format, only available if the error source is OTHER. */ %newobject other_format; const char *other_format() { CMPIString *s = CMGetOtherErrorSourceFormat($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("other_format=") set_other_format(const char *oesf); /* specifies A string defining "Other" values for ErrorSourceFormat */ void set_other_format(const char *oesf) { CMSetOtherErrorSourceFormat($self, oesf); } /* Returns the status code of this error. */ CMPIrc status_code() { return CMGetCIMStatusCode($self, NULL); } /* Returns a string which describes the status code error. */ %newobject status_description; const char *status_description() { CMPIString *s = CMGetCIMStatusCodeDescription($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("status_description=") set_status_description(const char *cd); /* Sets the description of the status code. */ void set_status_description(const char *cd) { CMSetCIMStatusCodeDescription($self, cd); } /* Returns an array which contains the dynamic content of the message. */ CMPIArray *message_arguments() { return CMGetMessageArguments($self, NULL); } %rename("message_arguments=") set_message_arguments(CMPIArray* ma); /* Sets an array of strings for the dynamic content of the message. */ void set_message_arguments(CMPIArray* ma) { CMSetMessageArguments($self, ma); } }
Sets the 'other' error type of this error object.
void set_other_type(const char *ot) { CMSetOtherErrorType($self, ot); } /* Returns a string which describes the owning entity. */ %newobject owning_entity; const char *owning_entity() { CMPIString *s = CMGetOwningEntity($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } /* Returns a string which is the message ID. */ %newobject message_id; const char *message_id() { CMPIString *s = CMGetMessageID($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } /* Returns a string combinating an error message. */ %newobject message; const char *message() { CMPIString *s = CMGetErrorMessage($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } /* Returns the perceieved severity of this error. */ CMPIErrorSeverity severity() { return CMGetPerceivedSeverity($self, NULL); } /* Returns the probable cause of this error. */ CMPIErrorProbableCause probable_cause() { return CMGetProbableCause($self, NULL); } %rename("probable_cause=") set_probable_cause(const char *pcd); /* Sets the description of the probable cause. */ void set_probable_cause(const char *pcd) { CMSetProbableCauseDescription($self, pcd); } /* Returns a string which describes the probable cause. */ %newobject probable_cause_description; const char *probable_cause_description() { CMPIString *s = CMGetProbableCauseDescription($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } /* Returns an array of strings which describes recomended actions. */ CMPIArray *recommended_actions() { return CMGetRecommendedActions($self, NULL); } %rename("recommended_actions=") set_recommended_actions(const CMPIArray* ra); /* Sets the recomended actions array. */ void set_recommended_actions(const CMPIArray* ra) { CMSetRecommendedActions($self, ra); } /* Returns a string which describes the Error source. */ %newobject source; const char *source() { CMPIString *s = CMGetErrorSource($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("source=") set_source(const char *es); /* Specifies a string which specifes The identifying information of the entity (i.e., the instance) generating the error. */ void set_source(const char *es) { CMSetErrorSource($self, es); } /* Returns a the format that the error src is in. */ CMPIErrorSrcFormat source_format() { return CMGetErrorSourceFormat($self, NULL); } %rename("source_format=") set_source_format(const CMPIErrorSrcFormat esf); /* Sets the source format of the error object. */ void set_source_format(const CMPIErrorSrcFormat esf) { CMSetErrorSourceFormat($self, esf); } /* Returns a string which describes the 'other' format, only available if the error source is OTHER. */ %newobject other_format; const char *other_format() { CMPIString *s = CMGetOtherErrorSourceFormat($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("other_format=") set_other_format(const char *oesf); /* specifies A string defining "Other" values for ErrorSourceFormat */ void set_other_format(const char *oesf) { CMSetOtherErrorSourceFormat($self, oesf); } /* Returns the status code of this error. */ CMPIrc status_code() { return CMGetCIMStatusCode($self, NULL); } /* Returns a string which describes the status code error. */ %newobject status_description; const char *status_description() { CMPIString *s = CMGetCIMStatusCodeDescription($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("status_description=") set_status_description(const char *cd); /* Sets the description of the status code. */ void set_status_description(const char *cd) { CMSetCIMStatusCodeDescription($self, cd); } /* Returns an array which contains the dynamic content of the message. */ CMPIArray *message_arguments() { return CMGetMessageArguments($self, NULL); } %rename("message_arguments=") set_message_arguments(CMPIArray* ma); /* Sets an array of strings for the dynamic content of the message. */ void set_message_arguments(CMPIArray* ma) { CMSetMessageArguments($self, ma); } }
const char *owning_entity() { CMPIString *s = CMGetOwningEntity($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } /* Returns a string which is the message ID. */ %newobject message_id; const char *message_id() { CMPIString *s = CMGetMessageID($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } /* Returns a string combinating an error message. */ %newobject message; const char *message() { CMPIString *s = CMGetErrorMessage($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } /* Returns the perceieved severity of this error. */ CMPIErrorSeverity severity() { return CMGetPerceivedSeverity($self, NULL); } /* Returns the probable cause of this error. */ CMPIErrorProbableCause probable_cause() { return CMGetProbableCause($self, NULL); } %rename("probable_cause=") set_probable_cause(const char *pcd); /* Sets the description of the probable cause. */ void set_probable_cause(const char *pcd) { CMSetProbableCauseDescription($self, pcd); } /* Returns a string which describes the probable cause. */ %newobject probable_cause_description; const char *probable_cause_description() { CMPIString *s = CMGetProbableCauseDescription($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } /* Returns an array of strings which describes recomended actions. */ CMPIArray *recommended_actions() { return CMGetRecommendedActions($self, NULL); } %rename("recommended_actions=") set_recommended_actions(const CMPIArray* ra); /* Sets the recomended actions array. */ void set_recommended_actions(const CMPIArray* ra) { CMSetRecommendedActions($self, ra); } /* Returns a string which describes the Error source. */ %newobject source; const char *source() { CMPIString *s = CMGetErrorSource($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("source=") set_source(const char *es); /* Specifies a string which specifes The identifying information of the entity (i.e., the instance) generating the error. */ void set_source(const char *es) { CMSetErrorSource($self, es); } /* Returns a the format that the error src is in. */ CMPIErrorSrcFormat source_format() { return CMGetErrorSourceFormat($self, NULL); } %rename("source_format=") set_source_format(const CMPIErrorSrcFormat esf); /* Sets the source format of the error object. */ void set_source_format(const CMPIErrorSrcFormat esf) { CMSetErrorSourceFormat($self, esf); } /* Returns a string which describes the 'other' format, only available if the error source is OTHER. */ %newobject other_format; const char *other_format() { CMPIString *s = CMGetOtherErrorSourceFormat($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("other_format=") set_other_format(const char *oesf); /* specifies A string defining "Other" values for ErrorSourceFormat */ void set_other_format(const char *oesf) { CMSetOtherErrorSourceFormat($self, oesf); } /* Returns the status code of this error. */ CMPIrc status_code() { return CMGetCIMStatusCode($self, NULL); } /* Returns a string which describes the status code error. */ %newobject status_description; const char *status_description() { CMPIString *s = CMGetCIMStatusCodeDescription($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("status_description=") set_status_description(const char *cd); /* Sets the description of the status code. */ void set_status_description(const char *cd) { CMSetCIMStatusCodeDescription($self, cd); } /* Returns an array which contains the dynamic content of the message. */ CMPIArray *message_arguments() { return CMGetMessageArguments($self, NULL); } %rename("message_arguments=") set_message_arguments(CMPIArray* ma); /* Sets an array of strings for the dynamic content of the message. */ void set_message_arguments(CMPIArray* ma) { CMSetMessageArguments($self, ma); } }
Returns the probable cause of this error.
CMPIErrorProbableCause probable_cause() { return CMGetProbableCause($self, NULL); } %rename("probable_cause=") set_probable_cause(const char *pcd); /* Sets the description of the probable cause. */ void set_probable_cause(const char *pcd) { CMSetProbableCauseDescription($self, pcd); } /* Returns a string which describes the probable cause. */ %newobject probable_cause_description; const char *probable_cause_description() { CMPIString *s = CMGetProbableCauseDescription($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } /* Returns an array of strings which describes recomended actions. */ CMPIArray *recommended_actions() { return CMGetRecommendedActions($self, NULL); } %rename("recommended_actions=") set_recommended_actions(const CMPIArray* ra); /* Sets the recomended actions array. */ void set_recommended_actions(const CMPIArray* ra) { CMSetRecommendedActions($self, ra); } /* Returns a string which describes the Error source. */ %newobject source; const char *source() { CMPIString *s = CMGetErrorSource($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("source=") set_source(const char *es); /* Specifies a string which specifes The identifying information of the entity (i.e., the instance) generating the error. */ void set_source(const char *es) { CMSetErrorSource($self, es); } /* Returns a the format that the error src is in. */ CMPIErrorSrcFormat source_format() { return CMGetErrorSourceFormat($self, NULL); } %rename("source_format=") set_source_format(const CMPIErrorSrcFormat esf); /* Sets the source format of the error object. */ void set_source_format(const CMPIErrorSrcFormat esf) { CMSetErrorSourceFormat($self, esf); } /* Returns a string which describes the 'other' format, only available if the error source is OTHER. */ %newobject other_format; const char *other_format() { CMPIString *s = CMGetOtherErrorSourceFormat($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("other_format=") set_other_format(const char *oesf); /* specifies A string defining "Other" values for ErrorSourceFormat */ void set_other_format(const char *oesf) { CMSetOtherErrorSourceFormat($self, oesf); } /* Returns the status code of this error. */ CMPIrc status_code() { return CMGetCIMStatusCode($self, NULL); } /* Returns a string which describes the status code error. */ %newobject status_description; const char *status_description() { CMPIString *s = CMGetCIMStatusCodeDescription($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("status_description=") set_status_description(const char *cd); /* Sets the description of the status code. */ void set_status_description(const char *cd) { CMSetCIMStatusCodeDescription($self, cd); } /* Returns an array which contains the dynamic content of the message. */ CMPIArray *message_arguments() { return CMGetMessageArguments($self, NULL); } %rename("message_arguments=") set_message_arguments(CMPIArray* ma); /* Sets an array of strings for the dynamic content of the message. */ void set_message_arguments(CMPIArray* ma) { CMSetMessageArguments($self, ma); } }
Sets the description of the probable cause.
void set_probable_cause(const char *pcd) { CMSetProbableCauseDescription($self, pcd); } /* Returns a string which describes the probable cause. */ %newobject probable_cause_description; const char *probable_cause_description() { CMPIString *s = CMGetProbableCauseDescription($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } /* Returns an array of strings which describes recomended actions. */ CMPIArray *recommended_actions() { return CMGetRecommendedActions($self, NULL); } %rename("recommended_actions=") set_recommended_actions(const CMPIArray* ra); /* Sets the recomended actions array. */ void set_recommended_actions(const CMPIArray* ra) { CMSetRecommendedActions($self, ra); } /* Returns a string which describes the Error source. */ %newobject source; const char *source() { CMPIString *s = CMGetErrorSource($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("source=") set_source(const char *es); /* Specifies a string which specifes The identifying information of the entity (i.e., the instance) generating the error. */ void set_source(const char *es) { CMSetErrorSource($self, es); } /* Returns a the format that the error src is in. */ CMPIErrorSrcFormat source_format() { return CMGetErrorSourceFormat($self, NULL); } %rename("source_format=") set_source_format(const CMPIErrorSrcFormat esf); /* Sets the source format of the error object. */ void set_source_format(const CMPIErrorSrcFormat esf) { CMSetErrorSourceFormat($self, esf); } /* Returns a string which describes the 'other' format, only available if the error source is OTHER. */ %newobject other_format; const char *other_format() { CMPIString *s = CMGetOtherErrorSourceFormat($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("other_format=") set_other_format(const char *oesf); /* specifies A string defining "Other" values for ErrorSourceFormat */ void set_other_format(const char *oesf) { CMSetOtherErrorSourceFormat($self, oesf); } /* Returns the status code of this error. */ CMPIrc status_code() { return CMGetCIMStatusCode($self, NULL); } /* Returns a string which describes the status code error. */ %newobject status_description; const char *status_description() { CMPIString *s = CMGetCIMStatusCodeDescription($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("status_description=") set_status_description(const char *cd); /* Sets the description of the status code. */ void set_status_description(const char *cd) { CMSetCIMStatusCodeDescription($self, cd); } /* Returns an array which contains the dynamic content of the message. */ CMPIArray *message_arguments() { return CMGetMessageArguments($self, NULL); } %rename("message_arguments=") set_message_arguments(CMPIArray* ma); /* Sets an array of strings for the dynamic content of the message. */ void set_message_arguments(CMPIArray* ma) { CMSetMessageArguments($self, ma); } }
const char *probable_cause_description() { CMPIString *s = CMGetProbableCauseDescription($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } /* Returns an array of strings which describes recomended actions. */ CMPIArray *recommended_actions() { return CMGetRecommendedActions($self, NULL); } %rename("recommended_actions=") set_recommended_actions(const CMPIArray* ra); /* Sets the recomended actions array. */ void set_recommended_actions(const CMPIArray* ra) { CMSetRecommendedActions($self, ra); } /* Returns a string which describes the Error source. */ %newobject source; const char *source() { CMPIString *s = CMGetErrorSource($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("source=") set_source(const char *es); /* Specifies a string which specifes The identifying information of the entity (i.e., the instance) generating the error. */ void set_source(const char *es) { CMSetErrorSource($self, es); } /* Returns a the format that the error src is in. */ CMPIErrorSrcFormat source_format() { return CMGetErrorSourceFormat($self, NULL); } %rename("source_format=") set_source_format(const CMPIErrorSrcFormat esf); /* Sets the source format of the error object. */ void set_source_format(const CMPIErrorSrcFormat esf) { CMSetErrorSourceFormat($self, esf); } /* Returns a string which describes the 'other' format, only available if the error source is OTHER. */ %newobject other_format; const char *other_format() { CMPIString *s = CMGetOtherErrorSourceFormat($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("other_format=") set_other_format(const char *oesf); /* specifies A string defining "Other" values for ErrorSourceFormat */ void set_other_format(const char *oesf) { CMSetOtherErrorSourceFormat($self, oesf); } /* Returns the status code of this error. */ CMPIrc status_code() { return CMGetCIMStatusCode($self, NULL); } /* Returns a string which describes the status code error. */ %newobject status_description; const char *status_description() { CMPIString *s = CMGetCIMStatusCodeDescription($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("status_description=") set_status_description(const char *cd); /* Sets the description of the status code. */ void set_status_description(const char *cd) { CMSetCIMStatusCodeDescription($self, cd); } /* Returns an array which contains the dynamic content of the message. */ CMPIArray *message_arguments() { return CMGetMessageArguments($self, NULL); } %rename("message_arguments=") set_message_arguments(CMPIArray* ma); /* Sets an array of strings for the dynamic content of the message. */ void set_message_arguments(CMPIArray* ma) { CMSetMessageArguments($self, ma); } }
Returns an array of strings which describes recomended actions.
CMPIArray *recommended_actions() { return CMGetRecommendedActions($self, NULL); } %rename("recommended_actions=") set_recommended_actions(const CMPIArray* ra); /* Sets the recomended actions array. */ void set_recommended_actions(const CMPIArray* ra) { CMSetRecommendedActions($self, ra); } /* Returns a string which describes the Error source. */ %newobject source; const char *source() { CMPIString *s = CMGetErrorSource($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("source=") set_source(const char *es); /* Specifies a string which specifes The identifying information of the entity (i.e., the instance) generating the error. */ void set_source(const char *es) { CMSetErrorSource($self, es); } /* Returns a the format that the error src is in. */ CMPIErrorSrcFormat source_format() { return CMGetErrorSourceFormat($self, NULL); } %rename("source_format=") set_source_format(const CMPIErrorSrcFormat esf); /* Sets the source format of the error object. */ void set_source_format(const CMPIErrorSrcFormat esf) { CMSetErrorSourceFormat($self, esf); } /* Returns a string which describes the 'other' format, only available if the error source is OTHER. */ %newobject other_format; const char *other_format() { CMPIString *s = CMGetOtherErrorSourceFormat($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("other_format=") set_other_format(const char *oesf); /* specifies A string defining "Other" values for ErrorSourceFormat */ void set_other_format(const char *oesf) { CMSetOtherErrorSourceFormat($self, oesf); } /* Returns the status code of this error. */ CMPIrc status_code() { return CMGetCIMStatusCode($self, NULL); } /* Returns a string which describes the status code error. */ %newobject status_description; const char *status_description() { CMPIString *s = CMGetCIMStatusCodeDescription($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("status_description=") set_status_description(const char *cd); /* Sets the description of the status code. */ void set_status_description(const char *cd) { CMSetCIMStatusCodeDescription($self, cd); } /* Returns an array which contains the dynamic content of the message. */ CMPIArray *message_arguments() { return CMGetMessageArguments($self, NULL); } %rename("message_arguments=") set_message_arguments(CMPIArray* ma); /* Sets an array of strings for the dynamic content of the message. */ void set_message_arguments(CMPIArray* ma) { CMSetMessageArguments($self, ma); } }
Sets the recomended actions array.
void set_recommended_actions(const CMPIArray* ra) { CMSetRecommendedActions($self, ra); } /* Returns a string which describes the Error source. */ %newobject source; const char *source() { CMPIString *s = CMGetErrorSource($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("source=") set_source(const char *es); /* Specifies a string which specifes The identifying information of the entity (i.e., the instance) generating the error. */ void set_source(const char *es) { CMSetErrorSource($self, es); } /* Returns a the format that the error src is in. */ CMPIErrorSrcFormat source_format() { return CMGetErrorSourceFormat($self, NULL); } %rename("source_format=") set_source_format(const CMPIErrorSrcFormat esf); /* Sets the source format of the error object. */ void set_source_format(const CMPIErrorSrcFormat esf) { CMSetErrorSourceFormat($self, esf); } /* Returns a string which describes the 'other' format, only available if the error source is OTHER. */ %newobject other_format; const char *other_format() { CMPIString *s = CMGetOtherErrorSourceFormat($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("other_format=") set_other_format(const char *oesf); /* specifies A string defining "Other" values for ErrorSourceFormat */ void set_other_format(const char *oesf) { CMSetOtherErrorSourceFormat($self, oesf); } /* Returns the status code of this error. */ CMPIrc status_code() { return CMGetCIMStatusCode($self, NULL); } /* Returns a string which describes the status code error. */ %newobject status_description; const char *status_description() { CMPIString *s = CMGetCIMStatusCodeDescription($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("status_description=") set_status_description(const char *cd); /* Sets the description of the status code. */ void set_status_description(const char *cd) { CMSetCIMStatusCodeDescription($self, cd); } /* Returns an array which contains the dynamic content of the message. */ CMPIArray *message_arguments() { return CMGetMessageArguments($self, NULL); } %rename("message_arguments=") set_message_arguments(CMPIArray* ma); /* Sets an array of strings for the dynamic content of the message. */ void set_message_arguments(CMPIArray* ma) { CMSetMessageArguments($self, ma); } }
Returns the perceieved severity of this error.
CMPIErrorSeverity severity() { return CMGetPerceivedSeverity($self, NULL); } /* Returns the probable cause of this error. */ CMPIErrorProbableCause probable_cause() { return CMGetProbableCause($self, NULL); } %rename("probable_cause=") set_probable_cause(const char *pcd); /* Sets the description of the probable cause. */ void set_probable_cause(const char *pcd) { CMSetProbableCauseDescription($self, pcd); } /* Returns a string which describes the probable cause. */ %newobject probable_cause_description; const char *probable_cause_description() { CMPIString *s = CMGetProbableCauseDescription($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } /* Returns an array of strings which describes recomended actions. */ CMPIArray *recommended_actions() { return CMGetRecommendedActions($self, NULL); } %rename("recommended_actions=") set_recommended_actions(const CMPIArray* ra); /* Sets the recomended actions array. */ void set_recommended_actions(const CMPIArray* ra) { CMSetRecommendedActions($self, ra); } /* Returns a string which describes the Error source. */ %newobject source; const char *source() { CMPIString *s = CMGetErrorSource($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("source=") set_source(const char *es); /* Specifies a string which specifes The identifying information of the entity (i.e., the instance) generating the error. */ void set_source(const char *es) { CMSetErrorSource($self, es); } /* Returns a the format that the error src is in. */ CMPIErrorSrcFormat source_format() { return CMGetErrorSourceFormat($self, NULL); } %rename("source_format=") set_source_format(const CMPIErrorSrcFormat esf); /* Sets the source format of the error object. */ void set_source_format(const CMPIErrorSrcFormat esf) { CMSetErrorSourceFormat($self, esf); } /* Returns a string which describes the 'other' format, only available if the error source is OTHER. */ %newobject other_format; const char *other_format() { CMPIString *s = CMGetOtherErrorSourceFormat($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("other_format=") set_other_format(const char *oesf); /* specifies A string defining "Other" values for ErrorSourceFormat */ void set_other_format(const char *oesf) { CMSetOtherErrorSourceFormat($self, oesf); } /* Returns the status code of this error. */ CMPIrc status_code() { return CMGetCIMStatusCode($self, NULL); } /* Returns a string which describes the status code error. */ %newobject status_description; const char *status_description() { CMPIString *s = CMGetCIMStatusCodeDescription($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("status_description=") set_status_description(const char *cd); /* Sets the description of the status code. */ void set_status_description(const char *cd) { CMSetCIMStatusCodeDescription($self, cd); } /* Returns an array which contains the dynamic content of the message. */ CMPIArray *message_arguments() { return CMGetMessageArguments($self, NULL); } %rename("message_arguments=") set_message_arguments(CMPIArray* ma); /* Sets an array of strings for the dynamic content of the message. */ void set_message_arguments(CMPIArray* ma) { CMSetMessageArguments($self, ma); } }
const char *source() { CMPIString *s = CMGetErrorSource($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("source=") set_source(const char *es); /* Specifies a string which specifes The identifying information of the entity (i.e., the instance) generating the error. */ void set_source(const char *es) { CMSetErrorSource($self, es); } /* Returns a the format that the error src is in. */ CMPIErrorSrcFormat source_format() { return CMGetErrorSourceFormat($self, NULL); } %rename("source_format=") set_source_format(const CMPIErrorSrcFormat esf); /* Sets the source format of the error object. */ void set_source_format(const CMPIErrorSrcFormat esf) { CMSetErrorSourceFormat($self, esf); } /* Returns a string which describes the 'other' format, only available if the error source is OTHER. */ %newobject other_format; const char *other_format() { CMPIString *s = CMGetOtherErrorSourceFormat($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("other_format=") set_other_format(const char *oesf); /* specifies A string defining "Other" values for ErrorSourceFormat */ void set_other_format(const char *oesf) { CMSetOtherErrorSourceFormat($self, oesf); } /* Returns the status code of this error. */ CMPIrc status_code() { return CMGetCIMStatusCode($self, NULL); } /* Returns a string which describes the status code error. */ %newobject status_description; const char *status_description() { CMPIString *s = CMGetCIMStatusCodeDescription($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("status_description=") set_status_description(const char *cd); /* Sets the description of the status code. */ void set_status_description(const char *cd) { CMSetCIMStatusCodeDescription($self, cd); } /* Returns an array which contains the dynamic content of the message. */ CMPIArray *message_arguments() { return CMGetMessageArguments($self, NULL); } %rename("message_arguments=") set_message_arguments(CMPIArray* ma); /* Sets an array of strings for the dynamic content of the message. */ void set_message_arguments(CMPIArray* ma) { CMSetMessageArguments($self, ma); } }
Specifies a string which specifes The identifying information of
the entity (i.e., the instance) generating the error.
void set_source(const char *es) { CMSetErrorSource($self, es); } /* Returns a the format that the error src is in. */ CMPIErrorSrcFormat source_format() { return CMGetErrorSourceFormat($self, NULL); } %rename("source_format=") set_source_format(const CMPIErrorSrcFormat esf); /* Sets the source format of the error object. */ void set_source_format(const CMPIErrorSrcFormat esf) { CMSetErrorSourceFormat($self, esf); } /* Returns a string which describes the 'other' format, only available if the error source is OTHER. */ %newobject other_format; const char *other_format() { CMPIString *s = CMGetOtherErrorSourceFormat($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("other_format=") set_other_format(const char *oesf); /* specifies A string defining "Other" values for ErrorSourceFormat */ void set_other_format(const char *oesf) { CMSetOtherErrorSourceFormat($self, oesf); } /* Returns the status code of this error. */ CMPIrc status_code() { return CMGetCIMStatusCode($self, NULL); } /* Returns a string which describes the status code error. */ %newobject status_description; const char *status_description() { CMPIString *s = CMGetCIMStatusCodeDescription($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("status_description=") set_status_description(const char *cd); /* Sets the description of the status code. */ void set_status_description(const char *cd) { CMSetCIMStatusCodeDescription($self, cd); } /* Returns an array which contains the dynamic content of the message. */ CMPIArray *message_arguments() { return CMGetMessageArguments($self, NULL); } %rename("message_arguments=") set_message_arguments(CMPIArray* ma); /* Sets an array of strings for the dynamic content of the message. */ void set_message_arguments(CMPIArray* ma) { CMSetMessageArguments($self, ma); } }
Returns a the format that the error src is in.
CMPIErrorSrcFormat source_format() { return CMGetErrorSourceFormat($self, NULL); } %rename("source_format=") set_source_format(const CMPIErrorSrcFormat esf); /* Sets the source format of the error object. */ void set_source_format(const CMPIErrorSrcFormat esf) { CMSetErrorSourceFormat($self, esf); } /* Returns a string which describes the 'other' format, only available if the error source is OTHER. */ %newobject other_format; const char *other_format() { CMPIString *s = CMGetOtherErrorSourceFormat($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("other_format=") set_other_format(const char *oesf); /* specifies A string defining "Other" values for ErrorSourceFormat */ void set_other_format(const char *oesf) { CMSetOtherErrorSourceFormat($self, oesf); } /* Returns the status code of this error. */ CMPIrc status_code() { return CMGetCIMStatusCode($self, NULL); } /* Returns a string which describes the status code error. */ %newobject status_description; const char *status_description() { CMPIString *s = CMGetCIMStatusCodeDescription($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("status_description=") set_status_description(const char *cd); /* Sets the description of the status code. */ void set_status_description(const char *cd) { CMSetCIMStatusCodeDescription($self, cd); } /* Returns an array which contains the dynamic content of the message. */ CMPIArray *message_arguments() { return CMGetMessageArguments($self, NULL); } %rename("message_arguments=") set_message_arguments(CMPIArray* ma); /* Sets an array of strings for the dynamic content of the message. */ void set_message_arguments(CMPIArray* ma) { CMSetMessageArguments($self, ma); } }
Sets the source format of the error object.
void set_source_format(const CMPIErrorSrcFormat esf) { CMSetErrorSourceFormat($self, esf); } /* Returns a string which describes the 'other' format, only available if the error source is OTHER. */ %newobject other_format; const char *other_format() { CMPIString *s = CMGetOtherErrorSourceFormat($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("other_format=") set_other_format(const char *oesf); /* specifies A string defining "Other" values for ErrorSourceFormat */ void set_other_format(const char *oesf) { CMSetOtherErrorSourceFormat($self, oesf); } /* Returns the status code of this error. */ CMPIrc status_code() { return CMGetCIMStatusCode($self, NULL); } /* Returns a string which describes the status code error. */ %newobject status_description; const char *status_description() { CMPIString *s = CMGetCIMStatusCodeDescription($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("status_description=") set_status_description(const char *cd); /* Sets the description of the status code. */ void set_status_description(const char *cd) { CMSetCIMStatusCodeDescription($self, cd); } /* Returns an array which contains the dynamic content of the message. */ CMPIArray *message_arguments() { return CMGetMessageArguments($self, NULL); } %rename("message_arguments=") set_message_arguments(CMPIArray* ma); /* Sets an array of strings for the dynamic content of the message. */ void set_message_arguments(CMPIArray* ma) { CMSetMessageArguments($self, ma); } }
Returns the status code of this error.
CMPIrc status_code() { return CMGetCIMStatusCode($self, NULL); } /* Returns a string which describes the status code error. */ %newobject status_description; const char *status_description() { CMPIString *s = CMGetCIMStatusCodeDescription($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("status_description=") set_status_description(const char *cd); /* Sets the description of the status code. */ void set_status_description(const char *cd) { CMSetCIMStatusCodeDescription($self, cd); } /* Returns an array which contains the dynamic content of the message. */ CMPIArray *message_arguments() { return CMGetMessageArguments($self, NULL); } %rename("message_arguments=") set_message_arguments(CMPIArray* ma); /* Sets an array of strings for the dynamic content of the message. */ void set_message_arguments(CMPIArray* ma) { CMSetMessageArguments($self, ma); } }
const char *status_description() { CMPIString *s = CMGetCIMStatusCodeDescription($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("status_description=") set_status_description(const char *cd); /* Sets the description of the status code. */ void set_status_description(const char *cd) { CMSetCIMStatusCodeDescription($self, cd); } /* Returns an array which contains the dynamic content of the message. */ CMPIArray *message_arguments() { return CMGetMessageArguments($self, NULL); } %rename("message_arguments=") set_message_arguments(CMPIArray* ma); /* Sets an array of strings for the dynamic content of the message. */ void set_message_arguments(CMPIArray* ma) { CMSetMessageArguments($self, ma); } }
Sets the description of the status code.
void set_status_description(const char *cd) { CMSetCIMStatusCodeDescription($self, cd); } /* Returns an array which contains the dynamic content of the message. */ CMPIArray *message_arguments() { return CMGetMessageArguments($self, NULL); } %rename("message_arguments=") set_message_arguments(CMPIArray* ma); /* Sets an array of strings for the dynamic content of the message. */ void set_message_arguments(CMPIArray* ma) { CMSetMessageArguments($self, ma); } }
Gets the type of this Error
CMPIErrorType type() { return CMGetErrorType($self, NULL); } %rename("type=") set_type(const CMPIErrorType et); /* Sets the error type of this error object. */ void set_type(const CMPIErrorType et) { CMSetErrorType($self, et); } /* Returns a string which describes the alternate error type. */ %newobject other_type; const char *other_type() { CMPIString *s = CMGetOtherErrorType($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("other_type=") set_other_type(const char *ot); /* Sets the 'other' error type of this error object. */ void set_other_type(const char *ot) { CMSetOtherErrorType($self, ot); } /* Returns a string which describes the owning entity. */ %newobject owning_entity; const char *owning_entity() { CMPIString *s = CMGetOwningEntity($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } /* Returns a string which is the message ID. */ %newobject message_id; const char *message_id() { CMPIString *s = CMGetMessageID($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } /* Returns a string combinating an error message. */ %newobject message; const char *message() { CMPIString *s = CMGetErrorMessage($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } /* Returns the perceieved severity of this error. */ CMPIErrorSeverity severity() { return CMGetPerceivedSeverity($self, NULL); } /* Returns the probable cause of this error. */ CMPIErrorProbableCause probable_cause() { return CMGetProbableCause($self, NULL); } %rename("probable_cause=") set_probable_cause(const char *pcd); /* Sets the description of the probable cause. */ void set_probable_cause(const char *pcd) { CMSetProbableCauseDescription($self, pcd); } /* Returns a string which describes the probable cause. */ %newobject probable_cause_description; const char *probable_cause_description() { CMPIString *s = CMGetProbableCauseDescription($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } /* Returns an array of strings which describes recomended actions. */ CMPIArray *recommended_actions() { return CMGetRecommendedActions($self, NULL); } %rename("recommended_actions=") set_recommended_actions(const CMPIArray* ra); /* Sets the recomended actions array. */ void set_recommended_actions(const CMPIArray* ra) { CMSetRecommendedActions($self, ra); } /* Returns a string which describes the Error source. */ %newobject source; const char *source() { CMPIString *s = CMGetErrorSource($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("source=") set_source(const char *es); /* Specifies a string which specifes The identifying information of the entity (i.e., the instance) generating the error. */ void set_source(const char *es) { CMSetErrorSource($self, es); } /* Returns a the format that the error src is in. */ CMPIErrorSrcFormat source_format() { return CMGetErrorSourceFormat($self, NULL); } %rename("source_format=") set_source_format(const CMPIErrorSrcFormat esf); /* Sets the source format of the error object. */ void set_source_format(const CMPIErrorSrcFormat esf) { CMSetErrorSourceFormat($self, esf); } /* Returns a string which describes the 'other' format, only available if the error source is OTHER. */ %newobject other_format; const char *other_format() { CMPIString *s = CMGetOtherErrorSourceFormat($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("other_format=") set_other_format(const char *oesf); /* specifies A string defining "Other" values for ErrorSourceFormat */ void set_other_format(const char *oesf) { CMSetOtherErrorSourceFormat($self, oesf); } /* Returns the status code of this error. */ CMPIrc status_code() { return CMGetCIMStatusCode($self, NULL); } /* Returns a string which describes the status code error. */ %newobject status_description; const char *status_description() { CMPIString *s = CMGetCIMStatusCodeDescription($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("status_description=") set_status_description(const char *cd); /* Sets the description of the status code. */ void set_status_description(const char *cd) { CMSetCIMStatusCodeDescription($self, cd); } /* Returns an array which contains the dynamic content of the message. */ CMPIArray *message_arguments() { return CMGetMessageArguments($self, NULL); } %rename("message_arguments=") set_message_arguments(CMPIArray* ma); /* Sets an array of strings for the dynamic content of the message. */ void set_message_arguments(CMPIArray* ma) { CMSetMessageArguments($self, ma); } }
Sets the error type of this error object.
void set_type(const CMPIErrorType et) { CMSetErrorType($self, et); } /* Returns a string which describes the alternate error type. */ %newobject other_type; const char *other_type() { CMPIString *s = CMGetOtherErrorType($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("other_type=") set_other_type(const char *ot); /* Sets the 'other' error type of this error object. */ void set_other_type(const char *ot) { CMSetOtherErrorType($self, ot); } /* Returns a string which describes the owning entity. */ %newobject owning_entity; const char *owning_entity() { CMPIString *s = CMGetOwningEntity($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } /* Returns a string which is the message ID. */ %newobject message_id; const char *message_id() { CMPIString *s = CMGetMessageID($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } /* Returns a string combinating an error message. */ %newobject message; const char *message() { CMPIString *s = CMGetErrorMessage($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } /* Returns the perceieved severity of this error. */ CMPIErrorSeverity severity() { return CMGetPerceivedSeverity($self, NULL); } /* Returns the probable cause of this error. */ CMPIErrorProbableCause probable_cause() { return CMGetProbableCause($self, NULL); } %rename("probable_cause=") set_probable_cause(const char *pcd); /* Sets the description of the probable cause. */ void set_probable_cause(const char *pcd) { CMSetProbableCauseDescription($self, pcd); } /* Returns a string which describes the probable cause. */ %newobject probable_cause_description; const char *probable_cause_description() { CMPIString *s = CMGetProbableCauseDescription($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } /* Returns an array of strings which describes recomended actions. */ CMPIArray *recommended_actions() { return CMGetRecommendedActions($self, NULL); } %rename("recommended_actions=") set_recommended_actions(const CMPIArray* ra); /* Sets the recomended actions array. */ void set_recommended_actions(const CMPIArray* ra) { CMSetRecommendedActions($self, ra); } /* Returns a string which describes the Error source. */ %newobject source; const char *source() { CMPIString *s = CMGetErrorSource($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("source=") set_source(const char *es); /* Specifies a string which specifes The identifying information of the entity (i.e., the instance) generating the error. */ void set_source(const char *es) { CMSetErrorSource($self, es); } /* Returns a the format that the error src is in. */ CMPIErrorSrcFormat source_format() { return CMGetErrorSourceFormat($self, NULL); } %rename("source_format=") set_source_format(const CMPIErrorSrcFormat esf); /* Sets the source format of the error object. */ void set_source_format(const CMPIErrorSrcFormat esf) { CMSetErrorSourceFormat($self, esf); } /* Returns a string which describes the 'other' format, only available if the error source is OTHER. */ %newobject other_format; const char *other_format() { CMPIString *s = CMGetOtherErrorSourceFormat($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("other_format=") set_other_format(const char *oesf); /* specifies A string defining "Other" values for ErrorSourceFormat */ void set_other_format(const char *oesf) { CMSetOtherErrorSourceFormat($self, oesf); } /* Returns the status code of this error. */ CMPIrc status_code() { return CMGetCIMStatusCode($self, NULL); } /* Returns a string which describes the status code error. */ %newobject status_description; const char *status_description() { CMPIString *s = CMGetCIMStatusCodeDescription($self, NULL); const char *result = strdup(CMGetCharPtr(s)); CMRelease(s); return result; } %rename("status_description=") set_status_description(const char *cd); /* Sets the description of the status code. */ void set_status_description(const char *cd) { CMSetCIMStatusCodeDescription($self, cd); } /* Returns an array which contains the dynamic content of the message. */ CMPIArray *message_arguments() { return CMGetMessageArguments($self, NULL); } %rename("message_arguments=") set_message_arguments(CMPIArray* ma); /* Sets an array of strings for the dynamic content of the message. */ void set_message_arguments(CMPIArray* ma) { CMSetMessageArguments($self, ma); } }