Share via


ArithmeticException クラス

算術演算、キャスト演算、または変換演算におけるエラーが原因でスローされる例外。

この型のすべてのメンバの一覧については、ArithmeticException メンバ を参照してください。

System.Object
   System.Exception
      System.SystemException
         System.ArithmeticException
            System.DivideByZeroException
            System.NotFiniteNumberException
            System.OverflowException

<Serializable>
Public Class ArithmeticException   Inherits SystemException
[C#]
[Serializable]
public class ArithmeticException : SystemException
[C++]
[Serializable]
public __gc class ArithmeticException : public SystemException
[JScript]
public
   Serializable
class ArithmeticException extends SystemException

スレッドセーフ

この型の public static (Visual Basicでは Shared) のすべてのメンバは、マルチスレッド操作で安全に使用できます。インスタンスのメンバの場合は、スレッドセーフであるとは限りません。

解説

ArithmeticException は、 DivideByZeroExceptionNotFiniteNumberException 、および OverflowException の基本クラスです。通常、 ArithmeticException の派生クラスを使用した方が、エラーについてより詳しく説明できます。一般的な算術エラーだけをキャプチャする場合は、 ArithmeticException をスローします。

ArithmeticException は、値 0x80070216 を保持する HRESULT COR_E_ARITHMETIC を使用します。

ArithmeticException のインスタンスの初期プロパティ値の一覧については、 ArithmeticException コンストラクタのトピックを参照してください。

必要条件

名前空間: System

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, .NET Compact Framework - Windows CE .NET

アセンブリ: Mscorlib (Mscorlib.dll 内)

参照

ArithmeticException メンバ | System 名前空間 | Exception | 例外の処理とスロー