ArithmeticException 생성자

정의

ArithmeticException 클래스의 새 인스턴스를 초기화합니다.

오버로드

ArithmeticException()

ArithmeticException 클래스의 새 인스턴스를 초기화합니다.

ArithmeticException(String)

지정된 오류 메시지를 사용하여 ArithmeticException 클래스의 새 인스턴스를 초기화합니다.

ArithmeticException(SerializationInfo, StreamingContext)
사용되지 않음.

serialize된 데이터를 사용하여 ArithmeticException 클래스의 새 인스턴스를 초기화합니다.

ArithmeticException(String, Exception)

지정된 오류 메시지와 해당 예외의 원인인 내부 예외에 대한 참조를 사용하여 ArithmeticException 클래스의 새 인스턴스를 초기화합니다.

ArithmeticException()

Source:
ArithmeticException.cs
Source:
ArithmeticException.cs
Source:
ArithmeticException.cs

ArithmeticException 클래스의 새 인스턴스를 초기화합니다.

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

설명

이 생성자는 새 instance 속성을 "산술 연산이 허용되지 않음"과 같이 오류를 설명하는 시스템 제공 메시지로 초기화 Message 합니다. 이 메시지는 현재 시스템 문화권을 고려합니다.

다음 표에서 인스턴스에 대 한 초기 속성 값을 보여 줍니다. ArithmeticException합니다.

속성
InnerException null.
Message 지역화된 오류 메시지 문자열입니다.

적용 대상

ArithmeticException(String)

Source:
ArithmeticException.cs
Source:
ArithmeticException.cs
Source:
ArithmeticException.cs

지정된 오류 메시지를 사용하여 ArithmeticException 클래스의 새 인스턴스를 초기화합니다.

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

매개 변수

message
String

오류를 설명하는 String입니다.

설명

message 매개 변수의 내용은 사용자가 이해할 수 있도록 만들어졌습니다. 현재 시스템 culture에 대해 이 문자열이 지역화되었는지 확인하려면 이 생성자의 호출자가 필요합니다.

다음 표에서 인스턴스에 대 한 초기 속성 값을 보여 줍니다. ArithmeticException합니다.

속성
InnerException null 참조(Nothing Visual Basic의 경우)입니다.
Message 오류 메시지 문자열입니다.

적용 대상

ArithmeticException(SerializationInfo, StreamingContext)

Source:
ArithmeticException.cs
Source:
ArithmeticException.cs
Source:
ArithmeticException.cs

주의

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

serialize된 데이터를 사용하여 ArithmeticException 클래스의 새 인스턴스를 초기화합니다.

protected:
 ArithmeticException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected ArithmeticException (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 ArithmeticException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new ArithmeticException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> ArithmeticException
[<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 ArithmeticException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> ArithmeticException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

매개 변수

info
SerializationInfo

serialize된 개체 데이터를 보유하는 개체입니다.

context
StreamingContext

원본 또는 대상에 대한 컨텍스트 정보입니다.

특성

설명

이 생성자는 스트림을 통해 전송되는 예외 개체를 다시 구성하기 위해 역직렬화 중에 호출됩니다. 자세한 내용은 XML 및 SOAP Serialization합니다.

추가 정보

적용 대상

ArithmeticException(String, Exception)

Source:
ArithmeticException.cs
Source:
ArithmeticException.cs
Source:
ArithmeticException.cs

지정된 오류 메시지와 해당 예외의 원인인 내부 예외에 대한 참조를 사용하여 ArithmeticException 클래스의 새 인스턴스를 초기화합니다.

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

매개 변수

message
String

예외에 대한 이유를 설명하는 오류 메시지입니다.

innerException
Exception

현재 예외의 원인인 예외입니다. innerException 매개 변수가 null 참조가 아닌 경우 내부 예외를 처리하는 catch 블록에서 현재 예외가 발생합니다.

설명

이전 예외의 직접적인 결과로 throw되는 예외의 InnerException 속성에는 이전 예외에 대한 참조가 들어 있어야 합니다. InnerException 속성은 생성자에 전달된 값과 같은 값을 반환하거나 Nothing 속성이 생성자에 내부 예외 값을 제공하지 않는 경우에는 null 참조(Visual Basic의 경우 InnerException)를 반환합니다.

다음 표에서 인스턴스에 대 한 초기 속성 값을 보여 줍니다. ArithmeticException합니다.

속성
InnerException 내부 예외 참조
Message 오류 메시지 문자열입니다.

추가 정보

적용 대상