3 types derived from ArithmeticException
System.Private.CoreLib (3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\DivideByZeroException.cs (1)
15public class DivideByZeroException : ArithmeticException
src\runtime\src\libraries\System.Private.CoreLib\src\System\NotFiniteNumberException.cs (1)
12public class NotFiniteNumberException : ArithmeticException
src\runtime\src\libraries\System.Private.CoreLib\src\System\OverflowException.cs (1)
15public class OverflowException : ArithmeticException
14 instantiations of ArithmeticException
Microsoft.ML.TimeSeries (1)
SrCnnEntireAnomalyDetector.cs (1)
1016throw new ArithmeticException("Not finite unit value");
PresentationCore (2)
src\wpf\src\Microsoft.DotNet.Wpf\src\Common\Graphics\wgx_render.cs (2)
911return new System.ArithmeticException(SR.Image_SingularMatrix, exceptionForHR); 942return new System.ArithmeticException(SR.Geometry_BadNumber, exceptionForHR);
System.Numerics.Tensors (1)
System\ThrowHelper.cs (1)
266throw new ArithmeticException(SR.Arithmetic_NaN);
System.Private.CoreLib (8)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
1778throw new ArithmeticException(SR.Arithmetic_NaN);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Math.cs (2)
1461throw new ArithmeticException(SR.Arithmetic_NaN); 1511throw new ArithmeticException(SR.Arithmetic_NaN);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.cs (1)
3407throw new ArithmeticException(SR.Arithmetic_NaN);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (1)
1367throw new ArithmeticException(SR.Arithmetic_NaN);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (1)
748return new System.ArithmeticException();
src\runtime\src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (1)
65throw new ArithmeticException(message);
System\RuntimeExceptionHelpers.cs (1)
78return new ArithmeticException();
System.Runtime.InteropServices.JavaScript (2)
System\Runtime\InteropServices\JavaScript\JSHostImplementation.CoreCLR.cs (2)
26throw new ArithmeticException($"BindAssemblyExports: __GeneratedInitializer type not found in assembly '{assemblyName}'"); 31throw new ArithmeticException($"BindAssemblyExports: __Register_ method not found in type '{generatedInitializerType.FullName}' in assembly '{assemblyName}'");
10 references to ArithmeticException
Microsoft.Private.Windows.Core (1)
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (1)
33catch (Exception ex) when (ex is ArgumentException or InvalidCastException or ArithmeticException or IOException or TargetInvocationException)
mscorlib (1)
src\runtime\src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
51[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ArithmeticException))]
netstandard (1)
netstandard.cs (1)
44[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ArithmeticException))]
System.Private.CoreLib (3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal128.cs (1)
1279/// <exception cref="ArithmeticException"><paramref name="value" /> is <c>NaN</c>.</exception>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal32.cs (1)
1290/// <exception cref="ArithmeticException"><paramref name="value" /> is <c>NaN</c>.</exception>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal64.cs (1)
1283/// <exception cref="ArithmeticException"><paramref name="value" /> is <c>NaN</c>.</exception>
System.Private.Windows.Core (1)
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (1)
33catch (Exception ex) when (ex is ArgumentException or InvalidCastException or ArithmeticException or IOException or TargetInvocationException)
System.Resources.Extensions (2)
System\Resources\Extensions\BinaryFormat\BinaryFormattedObject.cs (2)
50catch (Exception ex) when (ex is ArgumentException or InvalidCastException or ArithmeticException or IOException) 71catch (Exception ex) when (ex is ArgumentException or InvalidCastException or ArithmeticException or IOException)
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net11.0\System.Runtime.Forwards.cs (1)
39[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ArithmeticException))]