150 references to OverflowException
dotnet-svcutil-lib (13)
FrameworkFork\Microsoft.Xml\Xml\schema\FacetChecker.cs (1)
1020
return new
OverflowException
(string.Format(ResXml.XmlConvert_Overflow, value.ToString(), datatype.TypeCodeString));
FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (9)
888
throw new
OverflowException
(string.Format(ResXml.XmlConvert_Overflow, new string[] { XmlConvert.ToString(value), "Int32" }));
896
throw new
OverflowException
(string.Format(ResXml.XmlConvert_Overflow, new string[] { XmlConvert.ToString(value), "Int64" }));
904
throw new
OverflowException
(string.Format(ResXml.XmlConvert_Overflow, new string[] { XmlConvert.ToString(value), "UInt64" }));
912
throw new
OverflowException
(string.Format(ResXml.XmlConvert_Overflow, new string[] { XmlConvert.ToString(value), "Byte" }));
920
throw new
OverflowException
(string.Format(ResXml.XmlConvert_Overflow, new string[] { XmlConvert.ToString(value), "Int16" }));
928
throw new
OverflowException
(string.Format(ResXml.XmlConvert_Overflow, new string[] { XmlConvert.ToString(value), "SByte" }));
936
throw new
OverflowException
(string.Format(ResXml.XmlConvert_Overflow, new string[] { XmlConvert.ToString(value), "UInt16" }));
944
throw new
OverflowException
(string.Format(ResXml.XmlConvert_Overflow, new string[] { XmlConvert.ToString(value), "Int32" }));
952
throw new
OverflowException
(string.Format(ResXml.XmlConvert_Overflow, new string[] { XmlConvert.ToString(value), "UInt32" }));
FrameworkFork\Microsoft.Xml\Xml\schema\XsdDuration.cs (3)
288
throw new
OverflowException
(string.Format(ResXml.XmlConvert_Overflow, ToString(), "Duration"));
386
exception = new
OverflowException
(string.Format(ResXml.XmlConvert_Overflow, durationType, "TimeSpan"));
679
return new
OverflowException
(string.Format(ResXml.XmlConvert_Overflow, s, durationType));
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
Rendering\HtmlHelperValidationSummaryTest.cs (1)
678
modelState.AddModelError("Property2", new
OverflowException
("Produces invalid value message"), metadata);
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\CompilerServices\ExceptionUtils.vb (1)
233
Return New
OverflowException
(Description)
System.Data.Common (75)
System\Data\Filter\FilterException.cs (1)
66
OverflowException e = new
OverflowException
(error);
System\Data\SQLTypes\SQLByte.cs (8)
102
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
114
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
126
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
199
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
211
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
223
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
235
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
247
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
System\Data\SQLTypes\SQLDateTime.cs (3)
151
throw new
OverflowException
(SQLResource.DateTimeOverflowMessage);
162
throw new
OverflowException
(SQLResource.DateTimeOverflowMessage);
213
throw new
OverflowException
(SQLResource.DateTimeOverflowMessage);
System\Data\SQLTypes\SQLDecimal.cs (16)
621
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
661
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
678
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
1149
throw new
OverflowException
(SQLResource.ConversionOverflowMessage);
1319
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
1366
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
1561
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
1569
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
1586
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
1607
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
1615
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
2143
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
2150
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
2187
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
2195
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
2294
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
System\Data\SQLTypes\SQLDouble.cs (5)
39
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
110
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
123
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
136
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
152
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
System\Data\SQLTypes\SQLInt16.cs (9)
105
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
117
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
130
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
143
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
159
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
207
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
220
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
233
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
246
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
System\Data\SQLTypes\SQLInt32.cs (9)
107
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
119
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
132
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
145
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
161
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
216
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
229
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
242
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
266
throw new
OverflowException
(SQLResource.ConversionOverflowMessage);
System\Data\SQLTypes\SQLInt64.cs (13)
107
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
119
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
155
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
160
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
167
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
174
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
179
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
195
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
211
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
271
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
284
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
309
throw new
OverflowException
(SQLResource.ConversionOverflowMessage);
316
throw new
OverflowException
(SQLResource.ConversionOverflowMessage);
System\Data\SQLTypes\SQLMoney.cs (6)
70
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
86
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
92
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
263
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
279
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
291
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
System\Data\SQLTypes\SQLSingle.cs (5)
36
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
111
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
124
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
137
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
153
throw new
OverflowException
(SQLResource.ArithOverflowMessage);
System.Formats.Cbor (2)
System\Formats\Cbor\Writer\CborWriter.Tag.cs (2)
178
throw new
OverflowException
(SR.Cbor_Writer_DecimalOverflow);
208
throw new
OverflowException
(SR.Cbor_Writer_DecimalOverflow);
System.Net.Requests (1)
System\Net\HttpWebRequest.cs (1)
1832
throw new
OverflowException
(SR.net_maximumbindretries);
System.Numerics.Tensors (1)
System\Numerics\Tensors\TensorPrimitives.Helpers.cs (1)
41
private static void ThrowNegateTwosCompOverflow() => throw new
OverflowException
(SR.Overflow_NegateTwosCompNum);
System.Private.CoreLib (27)
src\libraries\System.Private.CoreLib\src\System\Convert.cs (11)
288
private static void ThrowCharOverflowException() { throw new
OverflowException
(SR.Overflow_Char); }
291
private static void ThrowByteOverflowException() { throw new
OverflowException
(SR.Overflow_Byte); }
294
private static void ThrowSByteOverflowException() { throw new
OverflowException
(SR.Overflow_SByte); }
297
private static void ThrowInt16OverflowException() { throw new
OverflowException
(SR.Overflow_Int16); }
300
private static void ThrowUInt16OverflowException() { throw new
OverflowException
(SR.Overflow_UInt16); }
303
private static void ThrowInt32OverflowException() { throw new
OverflowException
(SR.Overflow_Int32); }
306
private static void ThrowUInt32OverflowException() { throw new
OverflowException
(SR.Overflow_UInt32); }
309
private static void ThrowInt64OverflowException() { throw new
OverflowException
(SR.Overflow_Int64); }
312
private static void ThrowUInt64OverflowException() { throw new
OverflowException
(SR.Overflow_UInt64); }
1076
throw new
OverflowException
(SR.Overflow_Int32);
1197
throw new
OverflowException
(SR.Overflow_UInt32);
src\libraries\System.Private.CoreLib\src\System\DateTime.cs (1)
1670
throw new
OverflowException
(SR.Arg_OleAutDateInvalid);
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (4)
793
throw new
OverflowException
(SR.Overflow_Int32);
816
throw new
OverflowException
(SR.Overflow_Int64);
854
throw new
OverflowException
(SR.Overflow_UInt32);
871
throw new
OverflowException
(SR.Overflow_UInt64);
src\libraries\System.Private.CoreLib\src\System\Decimal.DecCalc.cs (1)
1311
throw new
OverflowException
(SR.Overflow_Currency);
src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanParse.cs (1)
554
throw new
OverflowException
(SR.Format(SR.Overflow_TimeSpanElementTooLarge, new string(_originalTimeSpanString)));
src\libraries\System.Private.CoreLib\src\System\Guid.cs (1)
225
throw new
OverflowException
(SR.Overflow_UInt32);
src\libraries\System.Private.CoreLib\src\System\Math.cs (1)
151
throw new
OverflowException
(SR.Overflow_NegateTwosCompNum);
src\libraries\System.Private.CoreLib\src\System\Number.Parsing.cs (2)
1073
throw new
OverflowException
(TInteger.OverflowMessage);
1079
throw new
OverflowException
(message);
src\libraries\System.Private.CoreLib\src\System\ParseNumbers.cs (2)
56
throw new
OverflowException
(SR.Overflow_NegativeUnsigned);
144
throw new
OverflowException
(SR.Overflow_NegativeUnsigned);
src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (3)
266
throw new
OverflowException
(SR.Overflow_NegateTwosCompNum);
272
throw new
OverflowException
(SR.Overflow_TimeSpanTooLong);
278
throw new
OverflowException
(SR.Overflow_Duration);
System.Private.Windows.Core (1)
Windows\Win32\Graphics\GdiPlus\StatusExtensions.cs (1)
46
return new
OverflowException
(SR.GdiplusOverflow);
System.Private.Xml (12)
System\Xml\Schema\FacetChecker.cs (1)
1012
return new
OverflowException
(SR.Format(SR.XmlConvert_Overflow, value.ToString(CultureInfo.InvariantCulture), datatype.TypeCodeString));
System\Xml\Schema\XmlValueConverter.cs (9)
803
throw new
OverflowException
(SR.Format(SR.XmlConvert_Overflow, new string[] { XmlConvert.ToString(value), "Int32" }));
811
throw new
OverflowException
(SR.Format(SR.XmlConvert_Overflow, new string[] { XmlConvert.ToString(value), "Int64" }));
819
throw new
OverflowException
(SR.Format(SR.XmlConvert_Overflow, new string[] { XmlConvert.ToString(value), "UInt64" }));
827
throw new
OverflowException
(SR.Format(SR.XmlConvert_Overflow, new string[] { XmlConvert.ToString(value), "Byte" }));
835
throw new
OverflowException
(SR.Format(SR.XmlConvert_Overflow, new string[] { XmlConvert.ToString(value), "Int16" }));
843
throw new
OverflowException
(SR.Format(SR.XmlConvert_Overflow, new string[] { XmlConvert.ToString(value), "SByte" }));
851
throw new
OverflowException
(SR.Format(SR.XmlConvert_Overflow, new string[] { XmlConvert.ToString(value), "UInt16" }));
859
throw new
OverflowException
(SR.Format(SR.XmlConvert_Overflow, new string[] { XmlConvert.ToString(value), "Int32" }));
867
throw new
OverflowException
(SR.Format(SR.XmlConvert_Overflow, new string[] { XmlConvert.ToString(value), "UInt32" }));
System\Xml\Schema\XsdDuration.cs (2)
326
exception = new
OverflowException
(SR.Format(SR.XmlConvert_Overflow, durationType, "TimeSpan"));
632
return new
OverflowException
(SR.Format(SR.XmlConvert_Overflow, s, durationType));
System.Runtime.Numerics (14)
System\Number.BigInteger.cs (1)
37
: new
OverflowException
(SR.Overflow_ParseBigInteger);
System\Numerics\BigInteger.cs (13)
157
throw new
OverflowException
(SR.Overflow_BigIntInfinity);
161
throw new
OverflowException
(SR.Overflow_NotANumber);
1354
throw new
OverflowException
(SR.Overflow_Negative_Unsigned);
1809
if (length > 3) throw new
OverflowException
(SR.Overflow_Decimal);
1883
throw new
OverflowException
(SR.Overflow_Int32);
1892
throw new
OverflowException
(SR.Overflow_Int32);
1908
throw new
OverflowException
(SR.Overflow_Int64);
1927
throw new
OverflowException
(SR.Overflow_Int64);
1946
throw new
OverflowException
(SR.Overflow_Int128);
1974
throw new
OverflowException
(SR.Overflow_Int128);
2019
throw new
OverflowException
(SR.Overflow_UInt32);
2039
throw new
OverflowException
(SR.Overflow_UInt64);
2066
throw new
OverflowException
(SR.Overflow_UInt128);
System.Threading (2)
System\Threading\ReaderWriterLock.cs (2)
96
throw new
OverflowException
(SR.Overflow_UInt16);
296
throw new
OverflowException
(SR.Overflow_UInt16);