class Openwsman::Fault

Fault represents details of a failed WS-Management operation

Fault

Public Class Methods

Openwsman::Fault.new result → Openwsman::Fault click to toggle source

Create a Fault representation of a failed WS-Management result doc

(WsXmlDocH doc) {
    WsManFault *fault = wsmc_fault_new();
    wsmc_get_fault_data(doc, fault);
    return fault;
  }
  ~_WsManFault() {
    wsmc_fault_destroy($self);
  }
  /*
   * Fault code
   *
   * call-seq:
   *   fault.code -> String
   *
   */
  const char *code() {
    return $self->code;
  }
  /*
   * Fault subcode
   *
   * call-seq:
   *   fault.subcode -> String
   *
   */
  const char *subcode() {
    return $self->subcode;
  }
  /*
   * Fault reason
   *
   * call-seq:
   *   fault.reason -> String
   *
   */
  const char *reason() {
    return $self->reason;
  }
  /*
   * Fault detail
   *
   * call-seq:
   *   fault.detail -> String
   *
   */
  const char *detail() {
    return $self->fault_detail;
  }
}

Public Instance Methods

code → String click to toggle source

Fault code

const char *code() {
    return $self->code;
  }
  /*
   * Fault subcode
   *
   * call-seq:
   *   fault.subcode -> String
   *
   */
  const char *subcode() {
    return $self->subcode;
  }
  /*
   * Fault reason
   *
   * call-seq:
   *   fault.reason -> String
   *
   */
  const char *reason() {
    return $self->reason;
  }
  /*
   * Fault detail
   *
   * call-seq:
   *   fault.detail -> String
   *
   */
  const char *detail() {
    return $self->fault_detail;
  }
}
detail → String click to toggle source

Fault detail

const char *detail() {
    return $self->fault_detail;
  }
}
reason → String click to toggle source

Fault reason

const char *reason() {
    return $self->reason;
  }
  /*
   * Fault detail
   *
   * call-seq:
   *   fault.detail -> String
   *
   */
  const char *detail() {
    return $self->fault_detail;
  }
}
subcode → String click to toggle source

Fault subcode

const char *subcode() {
    return $self->subcode;
  }
  /*
   * Fault reason
   *
   * call-seq:
   *   fault.reason -> String
   *
   */
  const char *reason() {
    return $self->reason;
  }
  /*
   * Fault detail
   *
   * call-seq:
   *   fault.detail -> String
   *
   */
  const char *detail() {
    return $self->fault_detail;
  }
}
to_s() click to toggle source
# File openwsman/openwsman.rb, line 122
def to_s
  "Fault #{code}.#{subcode}: #{detail} - #{reason}"
end