internal CimException(MI_Result errorCode, string errorMessage, MI_Instance errorDetailsHandle, string exceptionMessage) : base(exceptionMessage ?? CimException.GetExceptionMessage(errorCode, errorMessage, errorDetailsHandle)) { this.NativeErrorCode = errorCode.ToNativeErrorCode(); if (errorDetailsHandle != null) { this._errorData = new CimInstance(errorDetailsHandle.Clone()); } }
public CimException(CimInstance cimError) : base(CimException.GetExceptionMessage(cimError)) { if (cimError == null) { throw new ArgumentNullException("cimError"); } this._errorData = new CimInstance(cimError); }