129 references to ExceptionStringID
ILCompiler.Compiler (21)
Compiler\DependencyAnalysis\ConstructedEETypeNode.cs (1)
133ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, type);
Compiler\DependencyAnalysis\ReadyToRunHelperNode.cs (1)
75ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramCallVirtFinalize, method);
IL\ILImporter.Scanner.cs (1)
98ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramSpecific, method);
parent\parent\Common\Compiler\CompilerTypeSystemContext.cs (1)
122ThrowHelper.ThrowFileNotFoundException(ExceptionStringID.FileLoadErrorGeneric, simpleName);
parent\parent\Common\Compiler\CompilerTypeSystemContext.Validation.cs (13)
117ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, type); 250ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, type); 273ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, type); 279ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, type); 288ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadValueClassTooLarge, parameterType); 293ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadRankTooLarge, type); 299ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, type); 305ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, type); 326ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, type); 335ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, type); 353ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, type); 381ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, type); 389ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, type);
parent\parent\Common\TypeSystem\Interop\IL\Marshaller.cs (1)
1119ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, ManagedType);
parent\parent\Common\TypeSystem\Interop\UnmanagedCallingConventions.cs (1)
221ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramMultipleCallConv);
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\ModuleCycleInfo.cs (2)
279ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, referentType); 284ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, referentMethod);
ILCompiler.ReadyToRun (33)
Compiler\ReadyToRunLibraryRootProvider.cs (1)
119ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, type);
Compiler\ReadyToRunMetadataFieldLayoutAlgorithm.cs (4)
109ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, fieldDesc.OwningType); 115ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, fieldDesc.OwningType); 208ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, fieldDesc.OwningType); 216ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, fieldDesc.OwningType);
JitInterface\CorInfoImpl.ReadyToRun.cs (3)
1641ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramDefault); 1941ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramSpecific, HandleToObject(callerHandle)); 2215ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramSpecific, targetMethod);
parent\parent\Common\Compiler\CompilerTypeSystemContext.cs (1)
122ThrowHelper.ThrowFileNotFoundException(ExceptionStringID.FileLoadErrorGeneric, simpleName);
parent\parent\Common\Compiler\CompilerTypeSystemContext.Validation.cs (13)
117ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, type); 250ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, type); 273ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, type); 279ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, type); 288ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadValueClassTooLarge, parameterType); 293ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadRankTooLarge, type); 299ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, type); 305ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, type); 326ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, type); 335ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, type); 353ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, type); 381ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, type); 389ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, type);
parent\parent\Common\JitInterface\CorInfoImpl.cs (7)
348ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramSpecific, MethodBeingCompiled); 2101ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramSpecific, methodIL.OwningMethod); 2898ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramSpecific, MethodBeingCompiled); 4882ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramNonStaticMethod, this.MethodBeingCompiled); 4887ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramGenericMethod, this.MethodBeingCompiled); 4892ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramAsync, this.MethodBeingCompiled); 4897ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramNonBlittableTypes, this.MethodBeingCompiled);
parent\parent\Common\TypeSystem\Interop\IL\Marshaller.cs (1)
1119ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, ManagedType);
parent\parent\Common\TypeSystem\Interop\UnmanagedCallingConventions.cs (1)
221ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramMultipleCallConv);
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\ModuleCycleInfo.cs (2)
279ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, referentType); 284ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, referentMethod);
ILCompiler.RyuJit (7)
parent\parent\Common\JitInterface\CorInfoImpl.cs (7)
348ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramSpecific, MethodBeingCompiled); 2101ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramSpecific, methodIL.OwningMethod); 2898ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramSpecific, MethodBeingCompiled); 4882ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramNonStaticMethod, this.MethodBeingCompiled); 4887ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramGenericMethod, this.MethodBeingCompiled); 4892ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramAsync, this.MethodBeingCompiled); 4897ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramNonBlittableTypes, this.MethodBeingCompiled);
ILCompiler.TypeSystem (68)
parent\parent\Common\TypeSystem\Common\ExplicitLayoutValidator.cs (1)
91ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadExplicitLayout, type, offset.ToStringInvariant());
parent\parent\Common\TypeSystem\Common\MetadataFieldLayoutAlgorithm.cs (26)
21ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, type); 27ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadExplicitGeneric, type.GetTypeDefinition()); 41ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, type); 51ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, type); 72ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadBadFormat, type); 78ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadBadFormat, type); 85ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, type); 94ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, type); 151ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadBadFormat, type); 159ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadBadFormat, type); 211ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, type); 361ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadBadFormat, type); 379ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadExplicitLayout, type, metadataOffset.ToStringInvariant()); 401ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadInlineArrayExplicit, type); 515ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadBadFormat, type); 559ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadBadFormat, type); 565ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadBadFormat, type); 571ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadBadFormat, type); 604ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadBadFormat, type); 648ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadBadFormat, type); 654ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadBadFormat, type); 660ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadBadFormat, type); 699ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadInlineArrayLength, type); 704ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadInlineArrayFieldCount, type); 709ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadInlineArrayExplicitSize, type); 721ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadValueClassTooLarge, type);
parent\parent\Common\TypeSystem\Common\ResolutionFailure.cs (1)
105ThrowHelper.ThrowFileNotFoundException(ExceptionStringID.FileLoadErrorGeneric, _name);
parent\parent\Common\TypeSystem\Common\ThrowHelper.Common.cs (7)
15ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, nestedTypeName, Format.Module(module)); 21ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, Format.Type(@namespace, name), Format.Module(module)); 26ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, Format.Type(@namespace, name), moduleName); 32ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, Format.Type(type), Format.OwningModule(type)); 36public static void ThrowTypeLoadException(ExceptionStringID id, MethodDesc method) 42public static void ThrowTypeLoadException(ExceptionStringID id, TypeDesc type, string messageArg) 48public static void ThrowTypeLoadException(ExceptionStringID id, TypeDesc type)
parent\parent\Common\TypeSystem\Common\ThrowHelper.cs (9)
9private static void ThrowTypeLoadException(ExceptionStringID id, string typeName, string assemblyName, string messageArg) 15private static void ThrowTypeLoadException(ExceptionStringID id, string typeName, string assemblyName) 23throw new TypeSystemException.MissingMethodException(ExceptionStringID.MissingMethod, Format.Method(owningType, methodName, signature)); 29throw new TypeSystemException.MissingMethodException(ExceptionStringID.MissingMethod, methodName); 35throw new TypeSystemException.MissingFieldException(ExceptionStringID.MissingField, Format.Field(owningType, fieldName)); 39public static void ThrowFileNotFoundException(ExceptionStringID id, string fileName) 51public static void ThrowInvalidProgramException(ExceptionStringID id) 57public static void ThrowInvalidProgramException(ExceptionStringID id, MethodDesc method) 71throw new TypeSystemException.MarshalDirectiveException(ExceptionStringID.MarshalDirectiveGeneric);
parent\parent\Common\TypeSystem\Common\TypeDesc.cs (1)
483ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, this);
parent\parent\Common\TypeSystem\Common\TypeSystemException.cs (14)
19public ExceptionStringID StringID { get; } 40internal TypeSystemException(ExceptionStringID id, params string[] args) 46private static string GetExceptionString(ExceptionStringID id, string[] args) 70internal TypeLoadException(ExceptionStringID id, string typeName, string assemblyName, string messageArg) 77internal TypeLoadException(ExceptionStringID id, string typeName, string assemblyName) 91protected internal MissingMemberException(ExceptionStringID id, params string[] args) 102internal MissingMethodException(ExceptionStringID id, params string[] args) 113internal MissingFieldException(ExceptionStringID id, params string[] args) 124internal FileNotFoundException(ExceptionStringID id, string fileName) 136internal InvalidProgramException(ExceptionStringID id, string method) 141internal InvalidProgramException(ExceptionStringID id) 147: base(ExceptionStringID.InvalidProgramDefault) 155: base(ExceptionStringID.BadImageFormatGeneric) 162internal MarshalDirectiveException(ExceptionStringID id)
parent\parent\Common\TypeSystem\Common\TypeSystemException.Resources.cs (1)
18public static string GetFormatString(ExceptionStringID id)
parent\parent\Common\TypeSystem\Ecma\EcmaModule.cs (1)
666ThrowHelper.ThrowInvalidProgramException(ExceptionStringID.InvalidProgramVararg, (MethodDesc)parent);
parent\parent\Common\TypeSystem\Ecma\EcmaType.Interfaces.cs (1)
39ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadBadFormat, this);
parent\parent\Common\TypeSystem\IL\UnsafeAccessors.cs (6)
820codeStream.EmitLdc((int)ExceptionStringID.AmbiguousMatchUnsafeAccessor); 825codeStream.EmitLdc((int)ExceptionStringID.InvalidProgramDefault); 839ExceptionStringID id; 842id = ExceptionStringID.MissingField; 847id = ExceptionStringID.MissingMethod; 868codeStream.EmitLdc((int)ExceptionStringID.BadImageFormatGeneric);