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