class Cmpi::CMPIError

Representation of error information

Public Instance Methods

message() click to toggle source
  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);
  }
}
message_arguments() click to toggle source

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);
  }
}
message_arguments=(p1) click to toggle source

Sets an array of strings for the dynamic content of the message.

void set_message_arguments(CMPIArray* ma) {
    CMSetMessageArguments($self, ma);
  }
}
message_id() click to toggle source
  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);
  }
}
other_format() click to toggle source
  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);
  }
}
other_format=(p1) click to toggle source

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);
  }
}
other_type() click to toggle source
  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);
  }
}
other_type=(p1) click to toggle source

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);
  }
}
owning_entity() click to toggle source
  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);
  }
}
probable_cause() click to toggle source

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);
  }
}
probable_cause=(p1) click to toggle source

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);
  }
}
probable_cause_description() click to toggle source
  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);
  }
}
severity() click to toggle source

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);
  }
}
source() click to toggle 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);
  }
}
source=(p1) click to toggle source

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);
  }
}
source_format() click to toggle source

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);
  }
}
source_format=(p1) click to toggle source

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);
  }
}
status_code() click to toggle source

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);
  }
}
status_description() click to toggle source
  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);
  }
}
status_description=(p1) click to toggle source

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);
  }
}
type() click to toggle source

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);
  }
}
type=(p1) click to toggle source

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);
  }
}