/// <summary> /// Gets the global error state. /// </summary> /// <returns>null if all is OK, a description of the error otherwise</returns> public string GetGlobalErrorState() { UInt32 state = OpenNIImporter.xnGetGlobalErrorState(this.InternalObject); if (state == 0) { return(null); } else { return(WrapperUtils.GetErrorMessage(state)); } }
private void ErrorStateChangedCallback(UInt32 status, IntPtr cookie) { if (this.errorStateChanged != null) { if (status == 0) { this.errorStateChanged(null); } else { this.errorStateChanged(WrapperUtils.GetErrorMessage(status)); } } }
public string GetError() { UInt32 status = OpenNIImporter.xnEnumerationErrorsGetCurrentError(this.it); return(WrapperUtils.GetErrorMessage(status)); }
public XnStatusException(UInt32 status) : base(WrapperUtils.GetErrorMessage(status)) { this.status = status; }