Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Throw.cs
Go to the documentation of this file.
5
6namespace System.Reflection;
7
8internal static class Throw
9{
10 [MethodImpl(MethodImplOptions.NoInlining)]
11 [DoesNotReturn]
12 internal static void InvalidCast()
13 {
14 throw new InvalidCastException();
15 }
16
17 [MethodImpl(MethodImplOptions.NoInlining)]
18 [DoesNotReturn]
19 internal static void InvalidArgument(string message, string parameterName)
20 {
21 throw new ArgumentException(message, parameterName);
22 }
23
24 [MethodImpl(MethodImplOptions.NoInlining)]
25 [DoesNotReturn]
30
31 [MethodImpl(MethodImplOptions.NoInlining)]
32 [DoesNotReturn]
37
38 [MethodImpl(MethodImplOptions.NoInlining)]
39 [DoesNotReturn]
40 internal static Exception InvalidArgument_Handle(string parameterName)
41 {
42 throw new ArgumentException(System.SR.InvalidHandle, parameterName);
43 }
44
45 [MethodImpl(MethodImplOptions.NoInlining)]
46 [DoesNotReturn]
47 internal static void SignatureNotVarArg()
48 {
50 }
51
52 [MethodImpl(MethodImplOptions.NoInlining)]
53 [DoesNotReturn]
58
59 [MethodImpl(MethodImplOptions.NoInlining)]
60 [DoesNotReturn]
65
66 [MethodImpl(MethodImplOptions.NoInlining)]
67 [DoesNotReturn]
68 internal static void InvalidOperation(string message)
69 {
70 throw new InvalidOperationException(message);
71 }
72
73 [MethodImpl(MethodImplOptions.NoInlining)]
74 [DoesNotReturn]
75 internal static void InvalidOperation_LabelNotMarked(int id)
76 {
78 }
79
80 [MethodImpl(MethodImplOptions.NoInlining)]
81 [DoesNotReturn]
82 internal static void LabelDoesntBelongToBuilder(string parameterName)
83 {
84 throw new ArgumentException(System.SR.LabelDoesntBelongToBuilder, parameterName);
85 }
86
87 [MethodImpl(MethodImplOptions.NoInlining)]
88 [DoesNotReturn]
89 internal static void HeapHandleRequired()
90 {
92 }
93
94 [MethodImpl(MethodImplOptions.NoInlining)]
95 [DoesNotReturn]
96 internal static void EntityOrUserStringHandleRequired()
97 {
99 }
100
101 [MethodImpl(MethodImplOptions.NoInlining)]
102 [DoesNotReturn]
103 internal static void InvalidToken()
104 {
105 throw new ArgumentException(System.SR.InvalidToken, "token");
106 }
107
108 [MethodImpl(MethodImplOptions.NoInlining)]
109 [DoesNotReturn]
110 internal static void ArgumentNull(string parameterName)
111 {
112 throw new ArgumentNullException(parameterName);
113 }
114
115 [MethodImpl(MethodImplOptions.NoInlining)]
116 [DoesNotReturn]
117 internal static void ArgumentEmptyString(string parameterName)
118 {
119 throw new ArgumentException(System.SR.ExpectedNonEmptyString, parameterName);
120 }
121
122 [MethodImpl(MethodImplOptions.NoInlining)]
123 [DoesNotReturn]
124 internal static void ArgumentEmptyArray(string parameterName)
125 {
126 throw new ArgumentException(System.SR.ExpectedNonEmptyArray, parameterName);
127 }
128
129 [MethodImpl(MethodImplOptions.NoInlining)]
130 [DoesNotReturn]
131 internal static void ValueArgumentNull()
132 {
133 throw new ArgumentNullException("value");
134 }
135
136 [MethodImpl(MethodImplOptions.NoInlining)]
137 [DoesNotReturn]
138 internal static void BuilderArgumentNull()
139 {
140 throw new ArgumentNullException("builder");
141 }
142
143 [MethodImpl(MethodImplOptions.NoInlining)]
144 [DoesNotReturn]
145 internal static void ArgumentOutOfRange(string parameterName)
146 {
147 throw new ArgumentOutOfRangeException(parameterName);
148 }
149
150 [MethodImpl(MethodImplOptions.NoInlining)]
151 [DoesNotReturn]
152 internal static void ArgumentOutOfRange(string parameterName, string message)
153 {
154 throw new ArgumentOutOfRangeException(parameterName, message);
155 }
156
157 [MethodImpl(MethodImplOptions.NoInlining)]
158 [DoesNotReturn]
159 internal static void BlobTooLarge(string parameterName)
160 {
161 throw new ArgumentOutOfRangeException(parameterName, System.SR.BlobTooLarge);
162 }
163
164 [MethodImpl(MethodImplOptions.NoInlining)]
165 [DoesNotReturn]
166 internal static void IndexOutOfRange()
167 {
168 throw new ArgumentOutOfRangeException("index");
169 }
170
171 [MethodImpl(MethodImplOptions.NoInlining)]
172 [DoesNotReturn]
173 internal static void TableIndexOutOfRange()
174 {
175 throw new ArgumentOutOfRangeException("tableIndex");
176 }
177
178 [MethodImpl(MethodImplOptions.NoInlining)]
179 [DoesNotReturn]
180 internal static void ValueArgumentOutOfRange()
181 {
182 throw new ArgumentOutOfRangeException("value");
183 }
184
185 [MethodImpl(MethodImplOptions.NoInlining)]
186 [DoesNotReturn]
187 internal static void OutOfBounds()
188 {
190 }
191
192 [MethodImpl(MethodImplOptions.NoInlining)]
193 [DoesNotReturn]
194 internal static void WriteOutOfBounds()
195 {
197 }
198
199 [MethodImpl(MethodImplOptions.NoInlining)]
200 [DoesNotReturn]
201 internal static void InvalidCodedIndex()
202 {
204 }
205
206 [MethodImpl(MethodImplOptions.NoInlining)]
207 [DoesNotReturn]
208 internal static void InvalidHandle()
209 {
211 }
212
213 [MethodImpl(MethodImplOptions.NoInlining)]
214 [DoesNotReturn]
215 internal static void InvalidCompressedInteger()
216 {
218 }
219
220 [MethodImpl(MethodImplOptions.NoInlining)]
221 [DoesNotReturn]
222 internal static void InvalidSerializedString()
223 {
225 }
226
227 [MethodImpl(MethodImplOptions.NoInlining)]
228 [DoesNotReturn]
229 internal static void ImageTooSmall()
230 {
232 }
233
234 [MethodImpl(MethodImplOptions.NoInlining)]
235 [DoesNotReturn]
240
241 [MethodImpl(MethodImplOptions.NoInlining)]
242 [DoesNotReturn]
243 internal static void ReferenceOverflow()
244 {
246 }
247
248 [MethodImpl(MethodImplOptions.NoInlining)]
249 [DoesNotReturn]
250 internal static void TableNotSorted(TableIndex tableIndex)
251 {
253 }
254
255 [MethodImpl(MethodImplOptions.NoInlining)]
256 [DoesNotReturn]
257 internal static void InvalidOperation_TableNotSorted(TableIndex tableIndex)
258 {
260 }
261
262 [MethodImpl(MethodImplOptions.NoInlining)]
263 [DoesNotReturn]
268
269 [MethodImpl(MethodImplOptions.NoInlining)]
270 [DoesNotReturn]
271 internal static void TooManySubnamespaces()
272 {
274 }
275
276 [MethodImpl(MethodImplOptions.NoInlining)]
277 [DoesNotReturn]
278 internal static void ValueOverflow()
279 {
281 }
282
283 [MethodImpl(MethodImplOptions.NoInlining)]
284 [DoesNotReturn]
289
290 [MethodImpl(MethodImplOptions.NoInlining)]
291 [DoesNotReturn]
292 internal static void HeapSizeLimitExceeded(HeapIndex heap)
293 {
295 }
296
297 [MethodImpl(MethodImplOptions.NoInlining)]
298 [DoesNotReturn]
299 internal static void PEReaderDisposed()
300 {
301 throw new ObjectDisposedException("PEReader");
302 }
303}
static void InvalidOperation_TableNotSorted(TableIndex tableIndex)
Definition Throw.cs:257
static void InvalidHandle()
Definition Throw.cs:208
static void InvalidCodedIndex()
Definition Throw.cs:201
static void ArgumentNull(string parameterName)
Definition Throw.cs:110
static void LabelDoesntBelongToBuilder(string parameterName)
Definition Throw.cs:82
static void InvalidSerializedString()
Definition Throw.cs:222
static void BlobTooLarge(string parameterName)
Definition Throw.cs:159
static void ArgumentOutOfRange(string parameterName, string message)
Definition Throw.cs:152
static void TableIndexOutOfRange()
Definition Throw.cs:173
static void InvalidOperation_PEImageNotAvailable()
Definition Throw.cs:264
static void InvalidOperation_LabelNotMarked(int id)
Definition Throw.cs:75
static void InvalidOperation(string message)
Definition Throw.cs:68
static void ValueOverflow()
Definition Throw.cs:278
static Exception InvalidArgument_UnexpectedHandleKind(HandleKind kind)
Definition Throw.cs:33
static void ArgumentEmptyString(string parameterName)
Definition Throw.cs:117
static void TooManySubnamespaces()
Definition Throw.cs:271
static void InvalidOperationBuilderAlreadyLinked()
Definition Throw.cs:61
static void SequencePointValueOutOfRange()
Definition Throw.cs:285
static void ArgumentEmptyArray(string parameterName)
Definition Throw.cs:124
static void InvalidToken()
Definition Throw.cs:103
static void ImageTooSmallOrContainsInvalidOffsetOrCount()
Definition Throw.cs:236
static void ArgumentOutOfRange(string parameterName)
Definition Throw.cs:145
static void TableNotSorted(TableIndex tableIndex)
Definition Throw.cs:250
static void IndexOutOfRange()
Definition Throw.cs:166
static void SignatureNotVarArg()
Definition Throw.cs:47
static void EntityOrUserStringHandleRequired()
Definition Throw.cs:96
static void BuilderArgumentNull()
Definition Throw.cs:138
static void PEReaderDisposed()
Definition Throw.cs:299
static void OutOfBounds()
Definition Throw.cs:187
static void InvalidCast()
Definition Throw.cs:12
static Exception InvalidArgument_Handle(string parameterName)
Definition Throw.cs:40
static void ValueArgumentOutOfRange()
Definition Throw.cs:180
static void ReferenceOverflow()
Definition Throw.cs:243
static void InvalidArgument(string message, string parameterName)
Definition Throw.cs:19
static void ValueArgumentNull()
Definition Throw.cs:131
static void HeapSizeLimitExceeded(HeapIndex heap)
Definition Throw.cs:292
static void ImageTooSmall()
Definition Throw.cs:229
static void ControlFlowBuilderNotAvailable()
Definition Throw.cs:54
static void InvalidCompressedInteger()
Definition Throw.cs:215
static void HeapHandleRequired()
Definition Throw.cs:89
static void InvalidArgument_OffsetForVirtualHeapHandle()
Definition Throw.cs:26
static void WriteOutOfBounds()
Definition Throw.cs:194
static string ImageTooSmallOrContainsInvalidOffsetOrCount
Definition SR.cs:124
static string BuilderAlreadyLinked
Definition SR.cs:182
static string NotMetadataTableOrUserStringHandle
Definition SR.cs:48
static string ExpectedNonEmptyArray
Definition SR.cs:204
static string ControlFlowBuilderNotAvailable
Definition SR.cs:190
static string ValueTooLarge
Definition SR.cs:134
static string InvalidSerializedString
Definition SR.cs:120
static string InvalidCompressedInteger
Definition SR.cs:112
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string LabelNotMarked
Definition SR.cs:236
static string UnexpectedHandleKind
Definition SR.cs:20
static string TooManySubnamespaces
Definition SR.cs:146
static string RowIdOrHeapOffsetTooLarge
Definition SR.cs:116
static string MetadataTableNotSorted
Definition SR.cs:58
static string HeapSizeLimitExceeded
Definition SR.cs:178
static string OutOfBoundsRead
Definition SR.cs:68
static string InvalidHandle
Definition SR.cs:18
static string ExpectedNonEmptyString
Definition SR.cs:206
static string PEImageNotAvailable
Definition SR.cs:42
static string InvalidCodedIndex
Definition SR.cs:110
static string LabelDoesntBelongToBuilder
Definition SR.cs:188
static string SignatureNotVarArg
Definition SR.cs:186
static string InvalidToken
Definition SR.cs:36
static string NotMetadataHeapHandle
Definition SR.cs:46
static string CantGetOffsetForVirtualHeapHandle
Definition SR.cs:102
static string OutOfBoundsWrite
Definition SR.cs:70
static string ImageTooSmall
Definition SR.cs:14
static string BlobTooLarge
Definition SR.cs:136
static string SequencePointValueOutOfRange
Definition SR.cs:150
Definition SR.cs:7