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