23 references to ExternalException
System.CodeDom (1)
System\CodeDom\Compiler\Executor.cs (1)
90throw new ExternalException(SR.Format(SR.ExecTimeout, cmd), WAIT_TIMEOUT);
System.ComponentModel.TypeConverter (1)
System\ComponentModel\Design\CheckoutException.cs (1)
46public CheckoutException(string? message, int errorCode) : base(message, errorCode)
System.Data.Common (1)
System\Data\Common\DbException.cs (1)
18protected DbException(string? message, int errorCode) : base(message, errorCode) { }
System.Private.Windows.Core (9)
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (1)
144throw new ExternalException(SR.ExternalException, (int)HRESULT.E_OUTOFMEMORY);
System\Private\Windows\Ole\Composition.NativeToRuntimeAdapter.cs (1)
61throw new ExternalException(SR.ExternalException, (int)HRESULT.E_NOTIMPL);
Windows\Win32\Graphics\GdiPlus\StatusExtensions.cs (7)
26return new ExternalException(SR.GdiplusGenericError, (int)HRESULT.E_FAIL); 38return new ExternalException(SR.GdiplusGenericError, (int)HRESULT.E_FAIL); 42return new ExternalException(SR.GdiplusAborted, (int)HRESULT.E_ABORT); 48return new ExternalException(SR.GdiplusAccessDenied, (int)HRESULT.E_ACCESSDENIED); 69return new ExternalException(SR.GdiplusUnsupportedGdiplusVersion, (int)HRESULT.E_FAIL); 72return new ExternalException(SR.GdiplusNotInitialized, (int)HRESULT.E_FAIL); 75return new ExternalException($"{SR.GdiplusUnknown} [{status}]", (int)HRESULT.E_UNEXPECTED);
System.Windows.Forms (11)
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
1837internal static void ThrowHr(HRESULT hr) => throw new ExternalException(SR.ExternalException, (int)hr);
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (1)
914throw new ExternalException(errorText, (int)setError);
System\Windows\Forms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (6)
289throw new ExternalException(string.Format(SR.TYPEINFOPROCESSORGetTypeAttrFailed, hr), (int)hr); 354throw new ExternalException(string.Format(SR.TYPEINFOPROCESSORGetRefTypeInfoFailed, hr), (int)hr); 368throw new ExternalException(string.Format(SR.TYPEINFOPROCESSORGetTypeAttrFailed, hr), (int)hr); 602throw new ExternalException(string.Format(SR.TYPEINFOPROCESSORGetTypeAttrFailed, hr), (int)hr); 699throw new ExternalException(string.Format(SR.TYPEINFOPROCESSORGetTypeAttrFailed, hr), (int)hr); 828throw new ExternalException(string.Format(SR.TYPEINFOPROCESSORGetTypeAttrFailed, hr), (int)hr);
System\Windows\Forms\OLE\Clipboard.cs (3)
51throw new ExternalException(SR.ClipboardOperationFailed, (int)result); 64throw new ExternalException(SR.ClipboardOperationFailed, (int)result); 78throw new ExternalException(SR.ClipboardOperationFailed, (int)result);