169 instantiations of 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.AspNetCore.OutputCaching (1)
FormatterBinaryReader.cs (1)
196private static void ThrowOverflowException() => throw new OverflowException();
Microsoft.Extensions.Caching.Hybrid (1)
Internal\HybridCachePayload.cs (1)
413throw new OverflowException();
Microsoft.Extensions.Http.Polly.Tests (1)
DependencyInjection\PollyHttpClientBuilderExtensionsTest.cs (1)
559public Func<Exception> CreateException { get; set; } = () => new OverflowException();
Microsoft.VisualBasic.Core (3)
Microsoft\VisualBasic\CompilerServices\Conversions.vb (1)
1601Throw New OverflowException
Microsoft\VisualBasic\CompilerServices\ExceptionUtils.vb (1)
233Return New OverflowException(Description)
Microsoft\VisualBasic\CompilerServices\SingleType.vb (1)
37Throw New OverflowException
PresentationCore (1)
src\Microsoft.DotNet.Wpf\src\Common\Graphics\wgx_render.cs (1)
801return new System.OverflowException(SR.Image_Overflow, exceptionForHR);
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.Data.Odbc (2)
Common\System\Data\Common\AdapterUtil.Odbc.cs (1)
410e = new OverflowException(message, inner);
System\Data\Odbc\DbDataRecord.cs (1)
66throw new OverflowException(innerException.Message, innerException);
System.Formats.Cbor (4)
System\Formats\Cbor\Reader\CborReader.Integer.cs (1)
115throw new OverflowException();
System\Formats\Cbor\Writer\CborWriter.cs (1)
235throw new OverflowException();
System\Formats\Cbor\Writer\CborWriter.Tag.cs (2)
178throw new OverflowException(SR.Cbor_Writer_DecimalOverflow); 208throw new OverflowException(SR.Cbor_Writer_DecimalOverflow);
System.Linq (1)
System\Linq\ThrowHelper.cs (1)
36internal static void ThrowOverflowException() => throw new OverflowException();
System.Linq.Expressions (1)
System\Linq\Expressions\Interpreter\ArrayOperations.cs (1)
87throw new OverflowException();
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 (32)
src\coreclr\nativeaot\Runtime.Base\src\System\Runtime\ExceptionHandling.cs (1)
328ExceptionIDs.Overflow => new OverflowException(),
src\libraries\System.Private.CoreLib\src\Internal\Runtime\CompilerHelpers\ThrowHelpers.cs (1)
53throw new OverflowException();
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 (5)
793throw new OverflowException(SR.Overflow_Int32); 816throw new OverflowException(SR.Overflow_Int64); 854throw new OverflowException(SR.Overflow_UInt32); 871throw new OverflowException(SR.Overflow_UInt64); 940throw new OverflowException(SR.Overflow_Char, e);
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 (4)
260throw new OverflowException(); 266throw new OverflowException(SR.Overflow_NegateTwosCompNum); 272throw new OverflowException(SR.Overflow_TimeSpanTooLong); 278throw new OverflowException(SR.Overflow_Duration);
src\System\Reflection\RuntimeCustomAttributeData.cs (1)
1045throw new OverflowException();
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.Private.Xml.Linq (1)
System\Xml\Linq\XHashtable.cs (1)
213throw new OverflowException();
System.Runtime.Numerics (15)
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\ThrowHelper.cs (1)
15throw new OverflowException();
System.Threading (2)
System\Threading\ReaderWriterLock.cs (2)
96throw new OverflowException(SR.Overflow_UInt16); 296throw new OverflowException(SR.Overflow_UInt16);
436 references to OverflowException
Aspire.Hosting.Tests (1)
Utils\PasswordGeneratorTests.cs (1)
37Assert.Throws<OverflowException>(() => Generate(10, true, true, true, true, int.MaxValue, 1, 0, 0));
BinaryFormatTests (1)
FormatTests\FormattedObject\NullRecordTests.cs (1)
19action.Should().Throw<OverflowException>();
dotnet-svcutil-lib (72)
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\XmlBinaryReader.cs (9)
977catch (OverflowException e) 1237catch (OverflowException e) 1332catch (OverflowException e) 1427catch (OverflowException e) 1522catch (OverflowException e) 1617catch (OverflowException e) 1712catch (OverflowException e) 1752catch (OverflowException e) 1799catch (OverflowException e)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImpl.cs (1)
7389catch (OverflowException e)
FrameworkFork\Microsoft.Xml\Xml\Core\XsdValidatingReader.cs (18)
472catch (OverflowException e) 505catch (OverflowException e) 538catch (OverflowException e) 571catch (OverflowException e) 604catch (OverflowException e) 637catch (OverflowException e) 670catch (OverflowException e) 703catch (OverflowException e) 745catch (OverflowException e) 791catch (OverflowException e) 826catch (OverflowException e) 861catch (OverflowException e) 896catch (OverflowException e) 931catch (OverflowException e) 966catch (OverflowException e) 1001catch (OverflowException e) 1036catch (OverflowException e) 1078catch (OverflowException e)
FrameworkFork\Microsoft.Xml\Xml\Core\XsdValidatingReaderAsync.cs (4)
72catch (OverflowException e) 117catch (OverflowException e) 167catch (OverflowException e) 213catch (OverflowException e)
FrameworkFork\Microsoft.Xml\Xml\schema\DatatypeImplementation.cs (3)
623catch (OverflowException e) 1112catch (OverflowException e) 1356catch (OverflowException e)
FrameworkFork\Microsoft.Xml\Xml\schema\Inference\infer.cs (13)
1489catch (OverflowException) 1503catch (OverflowException) 1520catch (OverflowException) 1534catch (OverflowException) 1551catch (OverflowException) 1565catch (OverflowException) 1582catch (OverflowException) 1596catch (OverflowException) 1631catch (OverflowException) 1640catch (OverflowException) 1657catch (OverflowException) { } 1673catch (OverflowException) 1687catch (OverflowException)
FrameworkFork\Microsoft.Xml\Xml\schema\XsdDuration.cs (2)
286catch (OverflowException) 383catch (OverflowException)
FrameworkFork\Microsoft.Xml\Xml\XmlConvert.cs (1)
1241catch (OverflowException)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlReaderDelegator.cs (1)
560catch (OverflowException exception)
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBufferReader.cs (2)
480catch (OverflowException exception) 502catch (OverflowException exception)
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlConverter.cs (8)
113catch (OverflowException exception) 141catch (OverflowException exception) 169catch (OverflowException exception) 197catch (OverflowException exception) 225catch (OverflowException exception) 307catch (OverflowException exception) 332catch (OverflowException exception) 357catch (OverflowException exception)
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionaryReader.cs (7)
798catch (OverflowException exception) 1552catch (OverflowException exception) 1572catch (OverflowException exception) 1592catch (OverflowException exception) 1612catch (OverflowException exception) 1632catch (OverflowException exception) 1652catch (OverflowException exception)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Fx.cs (1)
331catch (OverflowException)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ReliableSessionBindingElementImporter.cs (2)
260catch (OverflowException exception) 276catch (OverflowException exception)
Microsoft.AspNetCore.Components.Server (8)
src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\T4\MessagePackReader.Integers.cs (8)
23/// <exception cref="OverflowException">Thrown when the value exceeds what can be stored in the returned type.</exception> 76/// <exception cref="OverflowException">Thrown when the value exceeds what can be stored in the returned type.</exception> 129/// <exception cref="OverflowException">Thrown when the value exceeds what can be stored in the returned type.</exception> 182/// <exception cref="OverflowException">Thrown when the value exceeds what can be stored in the returned type.</exception> 235/// <exception cref="OverflowException">Thrown when the value exceeds what can be stored in the returned type.</exception> 288/// <exception cref="OverflowException">Thrown when the value exceeds what can be stored in the returned type.</exception> 341/// <exception cref="OverflowException">Thrown when the value exceeds what can be stored in the returned type.</exception> 394/// <exception cref="OverflowException">Thrown when the value exceeds what can be stored in the returned type.</exception>
Microsoft.AspNetCore.Mvc.Abstractions (5)
ModelBinding\Metadata\ModelBindingMessageProvider.cs (4)
43/// <see cref="FormatException"/> or <see cref="OverflowException"/>, value is known, and error is associated 51/// <see cref="FormatException"/> or <see cref="OverflowException"/>, value is known, and error is associated 59/// <see cref="FormatException"/> or <see cref="OverflowException"/>, value is unknown, and error is associated 67/// <see cref="FormatException"/> or <see cref="OverflowException"/>, value is unknown, and error is associated
ModelBinding\ModelStateDictionary.cs (1)
274if (exception is FormatException || exception is OverflowException)
Microsoft.AspNetCore.Mvc.Core (1)
Formatters\SystemTextJsonInputFormatter.cs (1)
80catch (Exception exception) when (exception is FormatException || exception is OverflowException)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
NewtonsoftJsonInputFormatter.cs (1)
192if (exception is not null && exception is not (JsonException or OverflowException or FormatException))
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\Http1ChunkedEncodingMessageBody.cs (1)
495catch (OverflowException ex)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
MessageBodyTests.cs (1)
380Assert.IsType<OverflowException>(ex.InnerException);
Microsoft.Build (3)
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (2)
776ex is OverflowException) // overflow when converting string representation of a numerical type 1202ex is OverflowException) // overflow when converting string representation of a numerical type
Evaluation\Expander.cs (1)
4125catch (OverflowException)
Microsoft.Build.Tasks.Core (3)
GenerateResource.cs (1)
3704catch (OverflowException)
ManifestUtil\DeployManifest.cs (1)
277catch (OverflowException)
ManifestUtil\Util.cs (1)
350catch (OverflowException)
Microsoft.CodeAnalysis (4)
Collections\ImmutableMemoryStream.cs (1)
100catch (OverflowException)
CvtRes.cs (2)
222catch (OverflowException) 257catch (OverflowException)
InternalUtilities\ReadOnlyUnmanagedMemoryStream.cs (1)
115catch (OverflowException)
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (1)
150catch (OverflowException)
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Operators.cs (5)
2012catch (OverflowException) 2027catch (OverflowException) 2048catch (OverflowException) 3274catch (OverflowException) 3295catch (OverflowException)
Microsoft.CodeAnalysis.UnitTests (6)
Collections\List\SegmentedList.Generic.Tests.AddRange.cs (1)
151Assert.Throws<OverflowException>(() => list.AddRange(collection));
Collections\RopeTests.cs (3)
141Assert.Throws<OverflowException>(() => Rope.Concat(all, waferThinMint)); 142Assert.Throws<OverflowException>(() => Rope.Concat(waferThinMint, all)); 143Assert.Throws<OverflowException>(() => Rope.Concat(all, all));
RealParserTests.cs (2)
450catch (OverflowException) 469catch (OverflowException)
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (1)
150catch (OverflowException)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
src\Compilers\Core\Portable\InternalUtilities\ReadOnlyUnmanagedMemoryStream.cs (1)
115catch (OverflowException)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (1)
150catch (OverflowException)
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\Conversion.cs (1)
1506catch (OverflowException)
Microsoft.Extensions.AI.Abstractions (1)
AdditionalPropertiesDictionary{TValue}.cs (1)
180catch (Exception e) when (e is ArgumentException or FormatException or InvalidCastException or OverflowException)
Microsoft.Extensions.AI.Ollama (1)
OllamaUtilities.cs (1)
32catch (OverflowException)
Microsoft.Extensions.Http.Polly.Tests (4)
DependencyInjection\PollyHttpClientBuilderExtensionsTest.cs (4)
27RetryPolicy = Policy.Handle<OverflowException>().OrResult<HttpResponseMessage>(r => false).RetryAsync(); 108await Assert.ThrowsAsync<OverflowException>(() => client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "/throw"))); 146await Assert.ThrowsAsync<OverflowException>(() => client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "/throw"))); 231await Assert.ThrowsAsync<OverflowException>(() => client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "/throw")));
Microsoft.Maui.Controls (2)
BindingExpression.cs (1)
376 catch (OverflowException)
BindingExpressionHelper.cs (1)
51 catch (Exception ex) when (ex is InvalidCastException || ex is FormatException || ex is InvalidOperationException || ex is OverflowException)
Microsoft.ML.Data (1)
Transforms\KeyToVector.cs (1)
265catch (OverflowException e)
Microsoft.ML.FastTree (1)
FastTreeRanking.cs (1)
164if (ex is FormatException || ex is OverflowException)
Microsoft.ML.TimeSeries (1)
AdaptiveSingularSpectrumSequenceModeler.cs (1)
1077catch (OverflowException)
Microsoft.ML.Transforms (4)
Expression\BuiltinFunctions.cs (1)
1088catch (OverflowException)
Expression\Lexer.cs (3)
351catch (System.OverflowException) 377catch (OverflowException) 388catch (OverflowException)
Microsoft.VisualBasic.Core (24)
Microsoft\VisualBasic\CompilerServices\Conversions.vb (1)
1363Catch e1 As OverflowException
Microsoft\VisualBasic\CompilerServices\DecimalType.vb (1)
43Catch e1 As OverflowException
Microsoft\VisualBasic\CompilerServices\ObjectType.vb (8)
1773Catch e As OverflowException 1803Catch e As OverflowException 2117Catch e As OverflowException 2391Catch ex1 As OverflowException 2394Catch ex2 As OverflowException 2421Catch e As OverflowException 2683Catch e As OverflowException 3033Catch ex As OverflowException
Microsoft\VisualBasic\CompilerServices\Operators.vb (12)
2884Catch e As OverflowException 2894Catch e As OverflowException 2906Catch ex As OverflowException 3352Catch ex As OverflowException 3362Catch ex As OverflowException 3374Catch ex As OverflowException 3799Catch ex As OverflowException 3804Catch ex As OverflowException 3812Catch ex As OverflowException 3817Catch ex As OverflowException 3828Catch ex As OverflowException 4133Catch ex As OverflowException
Microsoft\VisualBasic\Conversion.vb (2)
328Catch ex As OverflowException 439Catch ex As OverflowException
MSBuild (2)
XMake.cs (2)
3410catch (OverflowException ex) 3510catch (OverflowException ex)
MSBuildTaskHost (1)
Concurrent\ConcurrentDictionary.cs (1)
382catch (OverflowException)
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
384[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.OverflowException))]
netstandard (1)
netstandard.cs (1)
1348[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.OverflowException))]
PresentationBuildTasks (2)
Microsoft\Build\Tasks\Windows\UidManager.cs (2)
867catch (OverflowException) 903catch (OverflowException)
PresentationCore (2)
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (1)
951catch (OverflowException ex)
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (1)
155catch (OverflowException ex)
PresentationFramework (9)
System\Windows\Controls\DocumentViewer.cs (1)
1918catch (OverflowException)
System\Windows\Controls\Primitives\DocumentPageView.cs (1)
972catch(System.OverflowException)
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
1534catch (OverflowException) { }
System\Windows\Documents\RtfToXamlReader.cs (4)
242catch (System.OverflowException) 263catch (System.OverflowException) 293catch (System.OverflowException) 8571catch (System.OverflowException)
System\Windows\Documents\XamlToRtfWriter.cs (1)
3798catch (System.OverflowException)
System\Windows\Documents\ZoomPercentageConverter.cs (1)
191catch (OverflowException) { }
PresentationUI (2)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (2)
1897catch (OverflowException) { } 1988catch (OverflowException) { }
ReachFramework (2)
PrintConfig\PrintSchema.cs (2)
2437catch (OverflowException e) 2472catch (OverflowException e)
System.Collections.Concurrent (13)
System\Collections\Concurrent\ConcurrentDictionary.cs (11)
366/// <exception cref="OverflowException">The <see cref="ConcurrentDictionary{TKey, TValue}"/> contains too many elements.</exception> 1154/// <exception cref="OverflowException">The dictionary contains too many 1202/// <exception cref="OverflowException">The dictionary contains too many 1243/// <exception cref="OverflowException">The dictionary contains too many 1282/// <exception cref="OverflowException">The dictionary contains too many 1322/// <exception cref="OverflowException">The dictionary contains too many 1397/// <exception cref="OverflowException">The dictionary contains too many 1468/// <exception cref="OverflowException">The dictionary contains too many 1565/// <exception cref="OverflowException">The dictionary contains too many 1622/// <exception cref="OverflowException">The <see 1691/// <exception cref="OverflowException">The dictionary contains too many
System\Collections\Concurrent\PartitionerStatic.cs (2)
218catch (OverflowException) 272catch (OverflowException)
System.Console (1)
System\ConsolePal.Unix.cs (1)
629catch (OverflowException) { }
System.Data.Common (44)
System\Data\Common\BooleanStorage.cs (1)
72catch (OverflowException)
System\Data\Common\ByteStorage.cs (1)
144catch (OverflowException)
System\Data\Common\CharStorage.cs (1)
71catch (OverflowException)
System\Data\Common\DateTimeOffsetStorage.cs (1)
81catch (OverflowException)
System\Data\Common\DateTimeStorage.cs (1)
81catch (OverflowException)
System\Data\Common\DecimalStorage.cs (1)
149catch (OverflowException)
System\Data\Common\DoubleStorage.cs (1)
144catch (OverflowException)
System\Data\Common\Int16Storage.cs (1)
158catch (OverflowException)
System\Data\Common\Int32Storage.cs (1)
157catch (OverflowException)
System\Data\Common\Int64Storage.cs (1)
149catch (OverflowException)
System\Data\Common\SByteStorage.cs (1)
144catch (OverflowException)
System\Data\Common\SingleStorage.cs (1)
145catch (OverflowException)
System\Data\Common\SQLTypes\SQLBinaryStorage.cs (1)
45catch (OverflowException)
System\Data\Common\SQLTypes\SQlBooleanStorage.cs (1)
79catch (OverflowException)
System\Data\Common\SQLTypes\SQLBytesStorage.cs (1)
46catch (OverflowException)
System\Data\Common\SQLTypes\SQLByteStorage.cs (1)
154catch (OverflowException)
System\Data\Common\SQLTypes\SQLCharsStorage.cs (1)
46catch (OverflowException)
System\Data\Common\SQLTypes\SQLDateTimeStorage.cs (1)
81catch (OverflowException)
System\Data\Common\SQLTypes\SQLDecimalStorage.cs (1)
153catch (OverflowException)
System\Data\Common\SQLTypes\SQLDoubleStorage.cs (1)
154catch (OverflowException)
System\Data\Common\SQLTypes\SQLGuidStorage.cs (1)
46catch (OverflowException)
System\Data\Common\SQLTypes\SQLInt16Storage.cs (1)
154catch (OverflowException)
System\Data\Common\SQLTypes\SQLInt32Storage.cs (1)
154catch (OverflowException)
System\Data\Common\SQLTypes\SQLInt64Storage.cs (1)
155catch (OverflowException)
System\Data\Common\SQLTypes\SQLMoneyStorage.cs (1)
154catch (OverflowException)
System\Data\Common\SQLTypes\SQLSingleStorage.cs (1)
152catch (OverflowException)
System\Data\Common\SQLTypes\SQLStringStorage.cs (1)
87catch (OverflowException)
System\Data\Common\TimeSpanStorage.cs (1)
140catch (OverflowException)
System\Data\Common\UInt16Storage.cs (1)
157catch (OverflowException)
System\Data\Common\UInt32Storage.cs (1)
155catch (OverflowException)
System\Data\Common\UInt64Storage.cs (1)
149catch (OverflowException)
System\Data\Filter\BinaryNode.cs (2)
270catch (System.OverflowException e) 1126catch (OverflowException)
System\Data\Filter\ConstNode.cs (5)
158catch (System.OverflowException e) 178catch (System.OverflowException e) 236catch (System.OverflowException e) 257catch (System.OverflowException e) 278catch (System.OverflowException e)
System\Data\Filter\FilterException.cs (2)
64private static OverflowException _Overflow(string error) 66OverflowException e = new OverflowException(error);
System\Data\SQLTypes\SQLDecimal.cs (2)
2813catch (OverflowException) 2826catch (OverflowException)
System\Data\SQLTypes\SQLMoney.cs (2)
277catch (OverflowException) 289catch (OverflowException)
System.Data.Odbc (5)
Common\System\Data\Common\AdapterUtil.Odbc.cs (1)
408else if (inner is OverflowException)
Common\System\Data\Common\DbConnectionOptions.cs (1)
243catch (OverflowException e)
System\Data\Odbc\DbDataRecord.cs (2)
65OverflowException innerException = (OverflowException)Values[i]!;
System\Data\Odbc\OdbcDataReader.cs (1)
878catch (OverflowException)
System.Drawing.Common.Tests (10)
mono\System.Drawing\GraphicsTests.cs (2)
2551Assert.Throws<OverflowException>(() => g.DrawImage(bmp, int.MaxValue, int.MinValue)); 2575Assert.Throws<OverflowException>(() => g.DrawImage(bmp, float.MaxValue, float.MinValue));
System\Drawing\Drawing2D\BlendTests.cs (1)
29Assert.Throws<OverflowException>(() => new Blend(-1));
System\Drawing\Drawing2D\ColorBlendTests.cs (1)
29Assert.Throws<OverflowException>(() => new ColorBlend(-1));
System\Drawing\Imaging\EncoderParameterTests.cs (5)
303[InlineData(EncoderParameterValueType.ValueTypeShort, (int.MaxValue / 2) + 1, typeof(OverflowException))] 304[InlineData(EncoderParameterValueType.ValueTypeLong, (int.MaxValue / 4) + 1, typeof(OverflowException))] 305[InlineData(EncoderParameterValueType.ValueTypeRational, (int.MaxValue / 8) + 1, typeof(OverflowException))] 306[InlineData(EncoderParameterValueType.ValueTypeLongRange, (int.MaxValue / 8) + 1, typeof(OverflowException))] 307[InlineData(EncoderParameterValueType.ValueTypeRationalRange, (int.MaxValue / 16) + 1, typeof(OverflowException))]
System\Drawing\StringFormatTests.cs (1)
225Assert.Throws<OverflowException>(() => format.SetMeasurableCharacterRanges(new CharacterRange[33]));
System.Formats.Cbor (5)
System\Formats\Cbor\Reader\CborReader.Integer.cs (4)
15/// <exception cref="OverflowException">The encoded integer is out of range for <see cref="int" />.</exception> 32/// <exception cref="OverflowException">The encoded integer is out of range for <see cref="uint" />.</exception> 50/// <exception cref="OverflowException">The encoded integer is out of range for <see cref="long" />.</exception> 67/// <exception cref="OverflowException">The encoded integer is out of range for <see cref="ulong" />.</exception>
System\Formats\Cbor\Reader\CborReader.Tag.cs (1)
193/// <exception cref="OverflowException">The decoded decimal fraction is either too large or too small for a <see cref="decimal" /> value.</exception>
System.Linq.AsyncEnumerable (11)
System\Linq\AverageAsync.cs (4)
18/// <exception cref="OverflowException">The sum of the elements in the sequence is larger than <see cref="long.MaxValue"/> (via the returned task).</exception> 53/// <exception cref="OverflowException">The sum of the elements in the sequence is larger than <see cref="long.MaxValue"/> (via the returned task).</exception> 187/// <exception cref="OverflowException">The sum of the elements in the sequence is larger than <see cref="long.MaxValue"/> (via the returned task).</exception> 219/// <exception cref="OverflowException">The sum of the elements in the sequence is larger than <see cref="long.MaxValue"/> (via the returned task).</exception>
System\Linq\CountAsync.cs (3)
19/// <exception cref="OverflowException">The number of elements in source is larger than <see cref="int.MaxValue"/> (via the returned task).</exception> 51/// <exception cref="OverflowException">The number of elements that satisfy the condition is larger than <see cref="int.MaxValue"/> (via the returned task).</exception> 86/// <exception cref="OverflowException">The number of elements that satisfy the condition is larger than <see cref="int.MaxValue"/> (via the returned task).</exception>
System\Linq\SumAsync.cs (4)
18/// <exception cref="OverflowException">The sum is larger than <see cref="int.MaxValue"/>.</exception> 44/// <exception cref="OverflowException">The sum is larger than <see cref="long.MaxValue"/>.</exception> 145/// <exception cref="OverflowException">The sum is larger than <see cref="int.MaxValue"/>.</exception> 174/// <exception cref="OverflowException">The sum is larger than <see cref="long.MaxValue"/>.</exception>
System.Numerics.Tensors (3)
System\Numerics\Tensors\netcore\TensorPrimitives.Abs.cs (1)
16/// <exception cref="OverflowException"><typeparamref name="T"/> is a signed integer type and <paramref name="x"/> contained a value equal to <typeparamref name="T"/>'s minimum value.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Sum.cs (1)
29/// <exception cref="OverflowException"><typeparamref name="T"/> is a signed integer type and <paramref name="x"/> contained a value equal to <typeparamref name="T"/>'s minimum value.</exception>
System\Numerics\Tensors\TensorPrimitives.Helpers.cs (1)
40/// <summary>Throws an <see cref="OverflowException"/> for trying to negate the minimum value of a two-complement value.</summary>
System.Private.CoreLib (74)
src\libraries\System.Private.CoreLib\src\System\AppContextConfigHelper.cs (4)
88catch (OverflowException) 126catch (OverflowException) 198catch (OverflowException) 236catch (OverflowException)
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (5)
715catch (OverflowException) 736catch (OverflowException) 756catch (OverflowException) 831catch (OverflowException) 938catch (OverflowException e)
src\libraries\System.Private.CoreLib\src\System\Enum.cs (4)
547/// <exception cref="OverflowException"><paramref name="value"/> is outside the range of the underlying type of <paramref name="enumType"/></exception> 559/// <exception cref="OverflowException"><paramref name="value"/> is outside the range of the underlying type of <paramref name="enumType"/></exception> 575/// <exception cref="OverflowException"><paramref name="value"/> is outside the range of the underlying type of <paramref name="enumType"/></exception> 600/// <exception cref="OverflowException"><paramref name="value"/> is outside the range of the underlying type of <paramref name="enumType"/></exception>
src\libraries\System.Private.CoreLib\src\System\Environment.OSVersion.Unix.cs (1)
51catch (OverflowException)
src\libraries\System.Private.CoreLib\src\System\Half.cs (13)
819/// <exception cref="OverflowException"><paramref name="value" /> is not representable by <see cref="byte" />.</exception> 830/// <exception cref="OverflowException"><paramref name="value" /> is not representable by <see cref="char" />.</exception> 846/// <exception cref="OverflowException"><paramref name="value" /> is not representable by <see cref="short" />.</exception> 857/// <exception cref="OverflowException"><paramref name="value" /> is not representable by <see cref="int" />.</exception> 868/// <exception cref="OverflowException"><paramref name="value" /> is not representable by <see cref="long" />.</exception> 879/// <exception cref="OverflowException"><paramref name="value" /> is not representable by <see cref="Int128" />.</exception> 890/// <exception cref="OverflowException"><paramref name="value" /> is not representable by <see cref="IntPtr" />.</exception> 902/// <exception cref="OverflowException"><paramref name="value" /> is not representable by <see cref="sbyte" />.</exception> 915/// <exception cref="OverflowException"><paramref name="value" /> is not representable by <see cref="ushort" />.</exception> 928/// <exception cref="OverflowException"><paramref name="value" /> is not representable by <see cref="uint" />.</exception> 941/// <exception cref="OverflowException"><paramref name="value" /> is not representable by <see cref="ulong" />.</exception> 954/// <exception cref="OverflowException"><paramref name="value" /> is not representable by <see cref="UInt128" />.</exception> 967/// <exception cref="OverflowException"><paramref name="value" /> is not representable by <see cref="UIntPtr" />.</exception>
src\libraries\System.Private.CoreLib\src\System\Int128.cs (2)
187/// <exception cref="OverflowException"><paramref name="value" /> is not representable by <see cref="Int128" />.</exception> 205/// <exception cref="OverflowException"><paramref name="value" /> is not representable by <see cref="Int128" />.</exception>
src\libraries\System.Private.CoreLib\src\System\IParsable.cs (1)
19/// <exception cref="OverflowException"><paramref name="s" /> is not representable by <typeparamref name="TSelf" />.</exception>
src\libraries\System.Private.CoreLib\src\System\ISpanParsable.cs (1)
18/// <exception cref="OverflowException"><paramref name="s" /> is not representable by <typeparamref name="TSelf" />.</exception>
src\libraries\System.Private.CoreLib\src\System\IUtf8SpanParsable.cs (1)
18/// <exception cref="OverflowException"><paramref name="utf8Text" /> is not representable by <typeparamref name="TSelf" />.</exception>
src\libraries\System.Private.CoreLib\src\System\Numerics\IAdditionOperators.cs (1)
23/// <exception cref="OverflowException">The sum of <paramref name="left" /> and <paramref name="right" /> is not representable by <typeparamref name="TResult" />.</exception>
src\libraries\System.Private.CoreLib\src\System\Numerics\IBinaryInteger.cs (6)
52/// <exception cref="OverflowException"><paramref name="source" /> is not representable by <typeparamref name="TSelf" /></exception> 67/// <exception cref="OverflowException"><paramref name="source" /> is not representable by <typeparamref name="TSelf" /></exception> 81/// <exception cref="OverflowException"><paramref name="source" /> is not representable by <typeparamref name="TSelf" /></exception> 95/// <exception cref="OverflowException"><paramref name="source" /> is not representable by <typeparamref name="TSelf" /></exception> 110/// <exception cref="OverflowException"><paramref name="source" /> is not representable by <typeparamref name="TSelf" /></exception> 124/// <exception cref="OverflowException"><paramref name="source" /> is not representable by <typeparamref name="TSelf" /></exception>
src\libraries\System.Private.CoreLib\src\System\Numerics\IDecrementOperators.cs (1)
19/// <exception cref="OverflowException">The result of decrementing <paramref name="value" /> is not representable by <typeparamref name="TSelf" />.</exception>
src\libraries\System.Private.CoreLib\src\System\Numerics\IDivisionOperators.cs (1)
23/// <exception cref="OverflowException">The quotient of <paramref name="left" /> divided-by <paramref name="right" /> is not representable by <typeparamref name="TResult" />.</exception>
src\libraries\System.Private.CoreLib\src\System\Numerics\IIncrementOperators.cs (1)
19/// <exception cref="OverflowException">The result of incrementing <paramref name="value" /> is not representable by <typeparamref name="TSelf" />.</exception>
src\libraries\System.Private.CoreLib\src\System\Numerics\IMultiplyOperators.cs (1)
23/// <exception cref="OverflowException">The product of <paramref name="left" /> multiplied-by <paramref name="right" /> is not representable by <typeparamref name="TResult" />.</exception>
src\libraries\System.Private.CoreLib\src\System\Numerics\INumberBase.cs (7)
46/// <exception cref="OverflowException">The absolute of <paramref name="value" /> is not representable by <typeparamref name="TSelf" />.</exception> 54/// <exception cref="OverflowException"><paramref name="value" /> is not representable by <typeparamref name="TSelf" />.</exception> 283/// <exception cref="OverflowException"><paramref name="s" /> is not representable by <typeparamref name="TSelf" />.</exception> 293/// <exception cref="OverflowException"><paramref name="s" /> is not representable by <typeparamref name="TSelf" />.</exception> 303/// <exception cref="OverflowException"><paramref name="utf8Text" /> is not representable by <typeparamref name="TSelf" />.</exception> 356/// <exception cref="OverflowException"><paramref name="value" /> is not representable by <typeparamref name="TSelf" />.</exception> 387/// <exception cref="OverflowException"><paramref name="value" /> is not representable by <typeparamref name="TOther" />.</exception>
src\libraries\System.Private.CoreLib\src\System\Numerics\ISubtractionOperators.cs (1)
23/// <exception cref="OverflowException">The difference of <paramref name="right" /> subtracted from <paramref name="left" /> is not representable by <typeparamref name="TResult" />.</exception>
src\libraries\System.Private.CoreLib\src\System\Numerics\IUnaryNegationOperators.cs (1)
20/// <exception cref="OverflowException">The unary negation of <paramref name="value" /> is not representable by <typeparamref name="TResult" />.</exception>
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\CLong.cs (1)
42/// <exception cref="OverflowException"><paramref name="value"/> is outside the range of the underlying storage type.</exception>
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\CULong.cs (1)
42/// <exception cref="OverflowException"><paramref name="value"/> is outside the range of the underlying storage type.</exception>
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\MemoryMarshal.cs (2)
26/// <exception cref="OverflowException"> 49/// <exception cref="OverflowException">
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (13)
261/// <exception cref="OverflowException"><paramref name="value" /> is not representable by <see cref="byte" />.</exception> 274/// <exception cref="OverflowException"><paramref name="value" /> is not representable by <see cref="char" />.</exception> 299/// <exception cref="OverflowException"><paramref name="value" /> is not representable by <see cref="short" />.</exception> 312/// <exception cref="OverflowException"><paramref name="value" /> is not representable by <see cref="int" />.</exception> 325/// <exception cref="OverflowException"><paramref name="value" /> is not representable by <see cref="long" />.</exception> 338/// <exception cref="OverflowException"><paramref name="value" /> is not representable by <see cref="Int128" />.</exception> 351/// <exception cref="OverflowException"><paramref name="value" /> is not representable by <see cref="IntPtr" />.</exception> 365/// <exception cref="OverflowException"><paramref name="value" /> is not representable by <see cref="sbyte" />.</exception> 386/// <exception cref="OverflowException"><paramref name="value" /> is not representable by <see cref="ushort" />.</exception> 401/// <exception cref="OverflowException"><paramref name="value" /> is not representable by <see cref="uint" />.</exception> 416/// <exception cref="OverflowException"><paramref name="value" /> is not representable by <see cref="ulong" />.</exception> 431/// <exception cref="OverflowException"><paramref name="value" /> is not representable by <see cref="UInt128" />.</exception> 446/// <exception cref="OverflowException"><paramref name="value" /> is not representable by <see cref="UIntPtr" />.</exception>
src\libraries\System.Private.CoreLib\src\System\TimeSpan.cs (1)
671/// <exception cref="OverflowException">
src\libraries\System.Private.CoreLib\src\System\UInt128.cs (2)
189/// <exception cref="OverflowException"><paramref name="value" /> is not representable by <see cref="UInt128" />.</exception> 207/// <exception cref="OverflowException"><paramref name="value" /> is not representable by <see cref="UInt128" />.</exception>
src\libraries\System.Private.CoreLib\src\System\Version.cs (1)
313/// <exception cref="OverflowException">At least one component in <paramref name="utf8Text" /> represents a number that is greater than <see cref="int.MaxValue"/>.</exception>
src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeName.cs (1)
441/// <exception cref="OverflowException">The total number of <see cref="TypeName"/> instances that are used to describe
System.Private.DataContractSerialization (25)
System\Runtime\Serialization\Json\JsonReaderDelegator.cs (3)
176catch (Exception exception) when (exception is ArgumentException or FormatException or OverflowException) 281catch (OverflowException exception) 314catch (OverflowException exception)
System\Runtime\Serialization\Json\XmlJsonReader.cs (4)
691catch (Exception exception) when (exception is ArgumentException or FormatException or OverflowException) 709catch (Exception exception) when (exception is ArgumentException or FormatException or OverflowException) 936catch (OverflowException exception) 948catch (Exception exception) when (exception is ArgumentException or FormatException or OverflowException)
System\Runtime\Serialization\XmlReaderDelegator.cs (2)
695catch (OverflowException exception) 716catch (OverflowException exception)
System\Xml\XmlBufferReader.cs (2)
437catch (OverflowException exception) 459catch (OverflowException exception)
System\Xml\XmlConverter.cs (8)
80catch (OverflowException exception) 108catch (OverflowException exception) 136catch (OverflowException exception) 164catch (OverflowException exception) 192catch (OverflowException exception) 274catch (OverflowException exception) 299catch (OverflowException exception) 324catch (OverflowException exception)
System\Xml\XmlDictionaryReader.cs (6)
906catch (OverflowException exception) 1690catch (OverflowException exception) 1710catch (OverflowException exception) 1730catch (OverflowException exception) 1750catch (OverflowException exception) 1770catch (OverflowException exception)
System.Private.Xml (53)
System\Xml\BinaryXml\XmlBinaryReader.cs (9)
966catch (OverflowException e) 1226catch (OverflowException e) 1321catch (OverflowException e) 1416catch (OverflowException e) 1511catch (OverflowException e) 1606catch (OverflowException e) 1701catch (OverflowException e) 1741catch (OverflowException e) 1788catch (OverflowException e)
System\Xml\Core\XmlTextReaderImpl.cs (1)
7262catch (OverflowException e)
System\Xml\Core\XsdValidatingReader.cs (18)
484catch (OverflowException e) 518catch (OverflowException e) 552catch (OverflowException e) 586catch (OverflowException e) 620catch (OverflowException e) 654catch (OverflowException e) 689catch (OverflowException e) 724catch (OverflowException e) 766catch (OverflowException e) 812catch (OverflowException e) 847catch (OverflowException e) 882catch (OverflowException e) 917catch (OverflowException e) 952catch (OverflowException e) 987catch (OverflowException e) 1022catch (OverflowException e) 1057catch (OverflowException e) 1100catch (OverflowException e)
System\Xml\Core\XsdValidatingReaderAsync.cs (4)
69catch (OverflowException e) 116catch (OverflowException e) 168catch (OverflowException e) 216catch (OverflowException e)
System\Xml\Schema\DataTypeImplementation.cs (3)
609catch (OverflowException e) 1077catch (OverflowException e) 1332catch (OverflowException e)
System\Xml\Schema\Inference\Infer.cs (13)
1470catch (OverflowException) 1484catch (OverflowException) 1501catch (OverflowException) 1515catch (OverflowException) 1532catch (OverflowException) 1546catch (OverflowException) 1563catch (OverflowException) 1577catch (OverflowException) 1611catch (OverflowException) 1620catch (OverflowException) 1637catch (OverflowException) { } 1653catch (OverflowException) 1667catch (OverflowException)
System\Xml\Schema\XsdDuration.cs (1)
323catch (OverflowException)
System\Xml\XmlConvert.cs (1)
1079catch (OverflowException)
System\Xml\Xsl\IlGen\XmlILOptimizerVisitor.cs (2)
5417catch (OverflowException) { } 5564catch (OverflowException)
System\Xml\Xsl\XsltOld\NumberAction.cs (1)
506catch (System.OverflowException) { }
System.Reflection.Metadata (1)
System\Reflection\Metadata\TypeName.cs (1)
441/// <exception cref="OverflowException">The total number of <see cref="TypeName"/> instances that are used to describe
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
410[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.OverflowException))]
System.Runtime.Numerics (3)
System\Numerics\BigInteger.cs (3)
1228/// <exception cref="OverflowException"> 1273/// <exception cref="OverflowException">If <paramref name="isUnsigned"/> is <c>true</c> and <see cref="Sign"/> is negative.</exception> 1325/// <exception cref="OverflowException">If <paramref name="isUnsigned"/> is <c>true</c> and <see cref="Sign"/> is negative.</exception>
System.Security.Cryptography (1)
System\Security\Cryptography\X509Certificates\X509Certificate2Collection.cs (1)
546/// <exception cref="OverflowException">
System.Security.Cryptography.Cose (1)
System\Security\Cryptography\Cose\CoseHeaderValue.cs (1)
135catch (Exception ex) when (ex is CborContentException or InvalidOperationException or OverflowException)
System.Windows.Forms (4)
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
1818catch (OverflowException)
System\Windows\Forms\Controls\UpDown\NumericUpDown.cs (2)
398catch (OverflowException) 687catch (OverflowException)
System\Windows\Forms\DataBinding\BindingNavigator.cs (1)
617catch (OverflowException)
UIAutomationClientSideProviders (2)
MS\Internal\AutomationProxies\WinFormsSpinner.cs (2)
73catch (OverflowException) 80catch (OverflowException)
xunit.console (1)
common\Json.cs (1)
694catch (OverflowException ex)