コード例 #1
0
        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());
            }
        }
コード例 #2
0
        public CimException(CimInstance cimError)
            : base(CimException.GetExceptionMessage(cimError))
        {
            if (cimError == null)
            {
                throw new ArgumentNullException("cimError");
            }

            this._errorData = new CimInstance(cimError);
        }