170 references to OverflowException
mscorlib (93)
system\byte.cs (1)
125
if (i < MinValue || i > MaxValue) throw new
OverflowException
(Environment.GetResourceString("Overflow_Byte"));
system\convert.cs (53)
497
if (value < 0) throw new
OverflowException
(Environment.GetResourceString("Overflow_Char"));
507
if (value < 0) throw new
OverflowException
(Environment.GetResourceString("Overflow_Char"));
518
if (value < 0 || value > Char.MaxValue) throw new
OverflowException
(Environment.GetResourceString("Overflow_Char"));
525
if (value > Char.MaxValue) throw new
OverflowException
(Environment.GetResourceString("Overflow_Char"));
531
if (value < 0 || value > Char.MaxValue) throw new
OverflowException
(Environment.GetResourceString("Overflow_Char"));
538
if (value > Char.MaxValue) throw new
OverflowException
(Environment.GetResourceString("Overflow_Char"));
616
if (value > SByte.MaxValue) throw new
OverflowException
(Environment.GetResourceString("Overflow_SByte"));
623
if (value > SByte.MaxValue) throw new
OverflowException
(Environment.GetResourceString("Overflow_SByte"));
630
if (value < SByte.MinValue || value > SByte.MaxValue) throw new
OverflowException
(Environment.GetResourceString("Overflow_SByte"));
637
if (value > SByte.MaxValue) throw new
OverflowException
(Environment.GetResourceString("Overflow_SByte"));
644
if (value < SByte.MinValue || value > SByte.MaxValue) throw new
OverflowException
(Environment.GetResourceString("Overflow_SByte"));
651
if (value > SByte.MaxValue) throw new
OverflowException
(Environment.GetResourceString("Overflow_SByte"));
658
if (value < SByte.MinValue || value > SByte.MaxValue) throw new
OverflowException
(Environment.GetResourceString("Overflow_SByte"));
665
if (value > (ulong)SByte.MaxValue) throw new
OverflowException
(Environment.GetResourceString("Overflow_SByte"));
725
if (value > Byte.MaxValue) throw new
OverflowException
(Environment.GetResourceString("Overflow_Byte"));
732
if (value < Byte.MinValue) throw new
OverflowException
(Environment.GetResourceString("Overflow_Byte"));
738
if (value < Byte.MinValue || value > Byte.MaxValue) throw new
OverflowException
(Environment.GetResourceString("Overflow_Byte"));
745
if (value > Byte.MaxValue) throw new
OverflowException
(Environment.GetResourceString("Overflow_Byte"));
751
if (value < Byte.MinValue || value > Byte.MaxValue) throw new
OverflowException
(Environment.GetResourceString("Overflow_Byte"));
758
if (value > Byte.MaxValue) throw new
OverflowException
(Environment.GetResourceString("Overflow_Byte"));
764
if (value < Byte.MinValue || value > Byte.MaxValue) throw new
OverflowException
(Environment.GetResourceString("Overflow_Byte"));
771
if (value > Byte.MaxValue) throw new
OverflowException
(Environment.GetResourceString("Overflow_Byte"));
824
if (value > Int16.MaxValue) throw new
OverflowException
(Environment.GetResourceString("Overflow_Int16"));
840
if (value > Int16.MaxValue) throw new
OverflowException
(Environment.GetResourceString("Overflow_Int16"));
846
if (value < Int16.MinValue || value > Int16.MaxValue) throw new
OverflowException
(Environment.GetResourceString("Overflow_Int16"));
853
if (value > Int16.MaxValue) throw new
OverflowException
(Environment.GetResourceString("Overflow_Int16"));
863
if (value < Int16.MinValue || value > Int16.MaxValue) throw new
OverflowException
(Environment.GetResourceString("Overflow_Int16"));
870
if (value > (ulong)Int16.MaxValue) throw new
OverflowException
(Environment.GetResourceString("Overflow_Int16"));
933
if (value < 0) throw new
OverflowException
(Environment.GetResourceString("Overflow_UInt16"));
945
if (value < 0) throw new
OverflowException
(Environment.GetResourceString("Overflow_UInt16"));
952
if (value < 0 || value > UInt16.MaxValue) throw new
OverflowException
(Environment.GetResourceString("Overflow_UInt16"));
964
if (value > UInt16.MaxValue) throw new
OverflowException
(Environment.GetResourceString("Overflow_UInt16"));
972
if (value < 0 || value > UInt16.MaxValue) throw new
OverflowException
(Environment.GetResourceString("Overflow_UInt16"));
979
if (value > UInt16.MaxValue) throw new
OverflowException
(Environment.GetResourceString("Overflow_UInt16"));
1061
if (value > Int32.MaxValue) throw new
OverflowException
(Environment.GetResourceString("Overflow_Int32"));
1071
if (value < Int32.MinValue || value > Int32.MaxValue) throw new
OverflowException
(Environment.GetResourceString("Overflow_Int32"));
1078
if (value > Int32.MaxValue) throw new
OverflowException
(Environment.GetResourceString("Overflow_Int32"));
1104
throw new
OverflowException
(Environment.GetResourceString("Overflow_Int32"));
1158
if (value < 0) throw new
OverflowException
(Environment.GetResourceString("Overflow_UInt32"));
1170
if (value < 0) throw new
OverflowException
(Environment.GetResourceString("Overflow_UInt32"));
1182
if (value < 0) throw new
OverflowException
(Environment.GetResourceString("Overflow_UInt32"));
1194
if (value < 0 || value > UInt32.MaxValue) throw new
OverflowException
(Environment.GetResourceString("Overflow_UInt32"));
1201
if (value > UInt32.MaxValue) throw new
OverflowException
(Environment.GetResourceString("Overflow_UInt32"));
1219
throw new
OverflowException
(Environment.GetResourceString("Overflow_UInt32"));
1298
if (value > Int64.MaxValue) throw new
OverflowException
(Environment.GetResourceString("Overflow_Int64"));
1365
if (value < 0) throw new
OverflowException
(Environment.GetResourceString("Overflow_UInt64"));
1377
if (value < 0) throw new
OverflowException
(Environment.GetResourceString("Overflow_UInt64"));
1389
if (value < 0) throw new
OverflowException
(Environment.GetResourceString("Overflow_UInt64"));
1401
if (value < 0) throw new
OverflowException
(Environment.GetResourceString("Overflow_UInt64"));
1984
throw new
OverflowException
(Environment.GetResourceString("Overflow_Byte"));
2003
throw new
OverflowException
(Environment.GetResourceString("Overflow_SByte"));
2021
throw new
OverflowException
(Environment.GetResourceString("Overflow_Int16"));
2037
throw new
OverflowException
(Environment.GetResourceString("Overflow_UInt16"));
system\datetime.cs (1)
1352
throw new
OverflowException
(Environment.GetResourceString("Arg_OleAutDateInvalid"));
system\decimal.cs (8)
830
if (temp < Byte.MinValue || temp > Byte.MaxValue) throw new
OverflowException
(Environment.GetResourceString("Overflow_Byte"));
848
if (temp < SByte.MinValue || temp > SByte.MaxValue) throw new
OverflowException
(Environment.GetResourceString("Overflow_SByte"));
864
if (temp < Int16.MinValue || temp > Int16.MaxValue) throw new
OverflowException
(Environment.GetResourceString("Overflow_Int16"));
916
throw new
OverflowException
(Environment.GetResourceString("Overflow_Int32"));
936
throw new
OverflowException
(Environment.GetResourceString("Overflow_Int64"));
952
if (temp < UInt16.MinValue || temp > UInt16.MaxValue) throw new
OverflowException
(Environment.GetResourceString("Overflow_UInt16"));
969
throw new
OverflowException
(Environment.GetResourceString("Overflow_UInt32"));
985
throw new
OverflowException
(Environment.GetResourceString("Overflow_UInt64"));
system\globalization\timespanparse.cs (1)
496
return new
OverflowException
(Environment.GetResourceString(m_failureMessageID));
system\int16.cs (2)
149
throw new
OverflowException
(Environment.GetResourceString("Overflow_Int16"));
154
if (i < MinValue || i > MaxValue) throw new
OverflowException
(Environment.GetResourceString("Overflow_Int16"));
system\math.cs (4)
258
throw new
OverflowException
(Environment.GetResourceString("Overflow_NegateTwosCompNum"));
273
throw new
OverflowException
(Environment.GetResourceString("Overflow_NegateTwosCompNum"));
288
throw new
OverflowException
(Environment.GetResourceString("Overflow_NegateTwosCompNum"));
303
throw new
OverflowException
(Environment.GetResourceString("Overflow_NegateTwosCompNum"));
system\number.cs (12)
658
throw new
OverflowException
(Environment.GetResourceString("Overflow_Decimal"));
691
throw new
OverflowException
(Environment.GetResourceString("Overflow_Double"));
708
throw new
OverflowException
(Environment.GetResourceString("Overflow_Int32"));
713
throw new
OverflowException
(Environment.GetResourceString("Overflow_Int32"));
729
throw new
OverflowException
(Environment.GetResourceString("Overflow_Int64"));
734
throw new
OverflowException
(Environment.GetResourceString("Overflow_Int64"));
968
throw new
OverflowException
(Environment.GetResourceString("Overflow_Single"));
972
throw new
OverflowException
(Environment.GetResourceString("Overflow_Single"));
988
throw new
OverflowException
(Environment.GetResourceString("Overflow_UInt32"));
993
throw new
OverflowException
(Environment.GetResourceString("Overflow_UInt32"));
1009
throw new
OverflowException
(Environment.GetResourceString("Overflow_UInt64"));
1014
throw new
OverflowException
(Environment.GetResourceString("Overflow_UInt64"));
system\sbyte.cs (2)
157
throw new
OverflowException
(Environment.GetResourceString("Overflow_SByte"));
162
if (i < MinValue || i > MaxValue) throw new
OverflowException
(Environment.GetResourceString("Overflow_SByte"));
system\security\accesscontrol\acl.cs (2)
563
throw new
OverflowException
( Environment.GetResourceString( "AccessControl_AclTooLong" ));
584
throw new
OverflowException
( Environment.GetResourceString( "AccessControl_AclTooLong" ));
system\timespan.cs (6)
159
throw new
OverflowException
(Environment.GetResourceString("Overflow_TimeSpanTooLong"));
199
throw new
OverflowException
(Environment.GetResourceString("Overflow_Duration"));
235
throw new
OverflowException
(Environment.GetResourceString("Overflow_TimeSpanTooLong"));
249
throw new
OverflowException
(Environment.GetResourceString("Overflow_NegateTwosCompNum"));
264
throw new
OverflowException
(Environment.GetResourceString("Overflow_TimeSpanTooLong"));
342
throw new
OverflowException
(Environment.GetResourceString("Overflow_NegateTwosCompNum"));
system\uint16.cs (1)
139
if (i > MaxValue) throw new
OverflowException
(Environment.GetResourceString("Overflow_UInt16"));
System (1)
net\System\Net\ServicePoint.cs (1)
1305
throw new
OverflowException
("Reached maximum number of BindIPEndPointDelegate retries");
System.Data (76)
fx\src\data\System\Data\Filter\FilterException.cs (1)
82
OverflowException e = new
OverflowException
(error);
fx\src\data\System\Data\SqlClient\SqlBuffer.cs (1)
200
throw new
OverflowException
(SQLResource.ConversionOverflowMessage);
fx\src\data\System\Data\SQLTypes\SQLByte.cs (8)
144
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
158
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
172
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
259
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
273
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
287
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
301
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
315
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
fx\src\data\System\Data\SQLTypes\SQLDateTime.cs (3)
175
throw new
OverflowException
(SQLResource.DateTimeOverflowMessage);
185
throw new
OverflowException
(SQLResource.DateTimeOverflowMessage);
231
throw new
OverflowException
(SQLResource.DateTimeOverflowMessage);
fx\src\data\System\Data\SQLTypes\SQLDecimal.cs (16)
628
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
669
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
687
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
1135
throw new
OverflowException
(SQLResource.ConversionOverflowMessage);
1286
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
1330
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
1521
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
1529
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
1546
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
1566
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
1574
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
2091
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
2098
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
2132
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
2140
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
2233
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
fx\src\data\System\Data\SQLTypes\SQLDouble.cs (5)
65
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
149
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
164
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
179
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
197
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
fx\src\data\System\Data\SQLTypes\SQLInt16.cs (9)
151
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
165
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
180
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
194
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
211
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
273
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
288
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
303
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
318
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
fx\src\data\System\Data\SQLTypes\SQLInt32.cs (9)
152
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
166
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
181
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
195
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
212
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
282
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
297
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
312
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
340
throw new
OverflowException
(SQLResource.ConversionOverflowMessage);
fx\src\data\System\Data\SQLTypes\SQLInt64.cs (13)
152
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
166
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
202
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
207
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
213
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
219
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
224
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
241
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
258
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
336
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
351
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
380
throw new
OverflowException
(SQLResource.ConversionOverflowMessage);
386
throw new
OverflowException
(SQLResource.ConversionOverflowMessage);
fx\src\data\System\Data\SQLTypes\SQLMoney.cs (6)
94
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
111
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
117
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
297
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
313
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
325
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
fx\src\data\System\Data\SQLTypes\SQLSingle.cs (5)
61
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
151
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
166
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
181
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
199
throw new
OverflowException
(SQLResource.ArithOverflowMessage);