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