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)
298
internal static Exception GetClasslibException(
ExceptionIDs
id, IntPtr address)
310
e = ((delegate*<
ExceptionIDs
, Exception>)pGetRuntimeExceptionFunction)(id);
351
internal static Exception GetClasslibExceptionFromEEType(
ExceptionIDs
id, MethodTable* pEEType)
365
e = ((delegate*<
ExceptionIDs
, Exception>)pGetRuntimeExceptionFunction)(id);
392
throw GetClasslibException(
ExceptionIDs
.Overflow, address);
403
throw GetClasslibException(
ExceptionIDs
.DivideByZero, address);
411
ExceptionIDs
exID = fIsOverflow ?
ExceptionIDs
.Overflow :
ExceptionIDs
.OutOfMemory;
607
ExceptionIDs
exceptionId = default(
ExceptionIDs
);
613
exceptionId =
ExceptionIDs
.NullReference;
621
exceptionId =
ExceptionIDs
.NullReference;
625
exceptionId =
ExceptionIDs
.DataMisaligned;
631
exceptionId =
ExceptionIDs
.AccessViolation;
635
exceptionId =
ExceptionIDs
.DivideByZero;
639
exceptionId =
ExceptionIDs
.Overflow;
643
exceptionId =
ExceptionIDs
.IllegalInstruction;
647
exceptionId =
ExceptionIDs
.InPageError;
651
exceptionId =
ExceptionIDs
.PrivilegedInstruction;
662
if (exceptionId != default(
ExceptionIDs
))
707
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: