51 references to ExceptionIDs
System.Private.CoreLib (51)
Internal\Runtime\MethodTable.Runtime.cs (1)
20
internal Exception GetClasslibException(
ExceptionIDs
id)
src\runtime\src\coreclr\nativeaot\Runtime.Base\src\System\Runtime\DispatchResolve.cs (2)
40
throw pTgtType->GetClasslibException(
ExceptionIDs
.EntrypointNotFound);
44
throw pTgtType->GetClasslibException(
ExceptionIDs
.AmbiguousImplementation);
src\runtime\src\coreclr\nativeaot\Runtime.Base\src\System\Runtime\ExceptionHandling.cs (22)
296
internal static Exception GetClasslibException(
ExceptionIDs
id, IntPtr address)
308
e = ((delegate*<
ExceptionIDs
, Exception>)pGetRuntimeExceptionFunction)(id);
349
internal static Exception GetClasslibExceptionFromEEType(
ExceptionIDs
id, MethodTable* pEEType)
363
e = ((delegate*<
ExceptionIDs
, Exception>)pGetRuntimeExceptionFunction)(id);
389
throw GetClasslibException(
ExceptionIDs
.Overflow, address);
399
throw GetClasslibException(
ExceptionIDs
.DivideByZero, address);
406
ExceptionIDs
exID = fIsOverflow ?
ExceptionIDs
.Overflow :
ExceptionIDs
.OutOfMemory;
601
ExceptionIDs
exceptionId = default(
ExceptionIDs
);
607
exceptionId =
ExceptionIDs
.NullReference;
615
exceptionId =
ExceptionIDs
.NullReference;
619
exceptionId =
ExceptionIDs
.DataMisaligned;
625
exceptionId =
ExceptionIDs
.AccessViolation;
629
exceptionId =
ExceptionIDs
.DivideByZero;
633
exceptionId =
ExceptionIDs
.Overflow;
637
exceptionId =
ExceptionIDs
.IllegalInstruction;
641
exceptionId =
ExceptionIDs
.InPageError;
645
exceptionId =
ExceptionIDs
.PrivilegedInstruction;
656
if (exceptionId != default(
ExceptionIDs
))
700
exceptionObj = GetClasslibException(
ExceptionIDs
.NullReference, faultingCodeAddress);
src\runtime\src\coreclr\nativeaot\Runtime.Base\src\System\Runtime\RuntimeExports.cs (5)
219
ExceptionIDs
exID = obj == null ?
ExceptionIDs
.NullReference :
ExceptionIDs
.InvalidCast;
229
throw pUnboxToEEType->GetClasslibException(
ExceptionIDs
.InvalidCast);
240
throw pType->GetClasslibException(
ExceptionIDs
.InvalidCast);
src\runtime\src\coreclr\nativeaot\Runtime.Base\src\System\Runtime\TypeCast.cs (5)
734
throw array.GetMethodTable()->GetClasslibException(
ExceptionIDs
.ArrayTypeMismatch);
741
throw array.GetMethodTable()->GetClasslibException(
ExceptionIDs
.IndexOutOfRange);
748
throw array.GetMethodTable()->GetClasslibException(
ExceptionIDs
.ArrayTypeMismatch);
843
throw elementType->GetClasslibException(
ExceptionIDs
.ArrayTypeMismatch);
949
throw pMT->GetClasslibException(
ExceptionIDs
.InvalidCast);
System\RuntimeExceptionHelpers.cs (16)
44
public static Exception? GetRuntimeException(
ExceptionIDs
id)
58
case
ExceptionIDs
.OutOfMemory:
77
case
ExceptionIDs
.Arithmetic:
80
case
ExceptionIDs
.ArrayTypeMismatch:
83
case
ExceptionIDs
.DivideByZero:
86
case
ExceptionIDs
.IndexOutOfRange:
89
case
ExceptionIDs
.InvalidCast:
92
case
ExceptionIDs
.Overflow:
95
case
ExceptionIDs
.NullReference:
98
case
ExceptionIDs
.AccessViolation:
102
case
ExceptionIDs
.IllegalInstruction:
106
case
ExceptionIDs
.PrivilegedInstruction:
110
case
ExceptionIDs
.InPageError:
114
case
ExceptionIDs
.DataMisaligned:
117
case
ExceptionIDs
.EntrypointNotFound:
120
case
ExceptionIDs
.AmbiguousImplementation: