OverflowException コンストラクター

定義

OverflowException クラスの新しいインスタンスを初期化します。

オーバーロード

OverflowException()

OverflowException クラスの新しいインスタンスを初期化します。

OverflowException(String)

指定したエラー メッセージを使用して、OverflowException クラスの新しいインスタンスを初期化します。

OverflowException(SerializationInfo, StreamingContext)
古い.

シリアル化したデータを使用して、OverflowException クラスの新しいインスタンスを初期化します。

OverflowException(String, Exception)

指定したエラー メッセージおよびこの例外の原因となった内部例外への参照を使用して、OverflowException クラスの新しいインスタンスを初期化します。

OverflowException()

Source:
OverflowException.cs
Source:
OverflowException.cs
Source:
OverflowException.cs

OverflowException クラスの新しいインスタンスを初期化します。

public:
 OverflowException();
public OverflowException ();
Public Sub New ()

注釈

次の表に、OverflowException のインスタンスに対するプロパティの初期値を示します。

プロパティ
InnerException null 参照 (Visual Basic の場合は Nothing)。
Message ローカライズされたエラー メッセージ文字列。

適用対象

OverflowException(String)

Source:
OverflowException.cs
Source:
OverflowException.cs
Source:
OverflowException.cs

指定したエラー メッセージを使用して、OverflowException クラスの新しいインスタンスを初期化します。

public:
 OverflowException(System::String ^ message);
public OverflowException (string message);
public OverflowException (string? message);
new OverflowException : string -> OverflowException
Public Sub New (message As String)

パラメーター

message
String

エラーを説明するメッセージ。

注釈

message 内容は、ユーザーが理解できる必要があります。 このコンストラクターの呼び出し元は、この文字列が現在のシステム環境向けにローカライズされていることを確認する必要があります。

次の表に、OverflowException のインスタンスに対するプロパティの初期値を示します。

プロパティ
InnerException null 参照 (Visual Basic の場合は Nothing)。
Message エラー メッセージ文字列。

適用対象

OverflowException(SerializationInfo, StreamingContext)

Source:
OverflowException.cs
Source:
OverflowException.cs
Source:
OverflowException.cs

注意事項

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

シリアル化したデータを使用して、OverflowException クラスの新しいインスタンスを初期化します。

protected:
 OverflowException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected OverflowException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected OverflowException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new OverflowException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> OverflowException
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new OverflowException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> OverflowException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

パラメーター

info
SerializationInfo

シリアル化されたオブジェクト データを保持するオブジェクト。

context
StreamingContext

転送元または転送先に関するコンテキスト情報。

属性

注釈

このコンストラクターは、シリアル化解除の際に呼び出されて、ストリームで送信された例外オブジェクトを再構成します。

適用対象

OverflowException(String, Exception)

Source:
OverflowException.cs
Source:
OverflowException.cs
Source:
OverflowException.cs

指定したエラー メッセージおよびこの例外の原因となった内部例外への参照を使用して、OverflowException クラスの新しいインスタンスを初期化します。

public:
 OverflowException(System::String ^ message, Exception ^ innerException);
public OverflowException (string message, Exception innerException);
public OverflowException (string? message, Exception? innerException);
new OverflowException : string * Exception -> OverflowException
Public Sub New (message As String, innerException As Exception)

パラメーター

message
String

例外の原因を説明するエラー メッセージ。

innerException
Exception

現在の例外の原因となった例外。 innerException パラメーターが null 参照 (Visual Basic の場合は Nothing) でない場合は、内部例外を処理する catch ブロックで現在の例外が発生します。

注釈

前の例外の直接の結果としてスローされる例外は、InnerException プロパティに前の例外への参照を含んでいる場合があります。 InnerException プロパティは、コンストラクターに渡されたものと同じ値を返します。Nothing プロパティによって内部例外値がコンストラクターに渡されなかった場合は、null 参照 (Visual Basic の場合は InnerException) を返します。

次の表に、OverflowException のインスタンスに対するプロパティの初期値を示します。

プロパティ [値]
InnerException 内部例外の参照。
Message エラー メッセージ文字列。

こちらもご覧ください

適用対象