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