다음을 통해 공유


StackOverflowException 생성자

정의

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

오버로드

Name Description
StackOverflowException()

클래스의 StackOverflowException 새 인스턴스를 초기화하고 새 인스턴스의 속성을 "요청된 작업으로 인해 스택 오버플로가 발생했습니다."와 같은 오류를 설명하는 시스템 제공 메시지로 설정합니다 Message . 이 메시지는 현재 시스템 문화권을 고려합니다.

StackOverflowException(String)

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

StackOverflowException(String, Exception)

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

StackOverflowException()

Source:
StackOverflowException.cs
Source:
StackOverflowException.cs
Source:
StackOverflowException.cs
Source:
StackOverflowException.cs
Source:
StackOverflowException.cs

클래스의 StackOverflowException 새 인스턴스를 초기화하고 새 인스턴스의 속성을 "요청된 작업으로 인해 스택 오버플로가 발생했습니다."와 같은 오류를 설명하는 시스템 제공 메시지로 설정합니다 Message . 이 메시지는 현재 시스템 문화권을 고려합니다.

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

설명

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

재산 가치
InnerException null;
Message 지역화된 오류 메시지 문자열입니다.

적용 대상

StackOverflowException(String)

Source:
StackOverflowException.cs
Source:
StackOverflowException.cs
Source:
StackOverflowException.cs
Source:
StackOverflowException.cs
Source:
StackOverflowException.cs

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

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

매개 변수

message
String

오류를 설명하는 A String 입니다. 메시지의 내용은 인간이 이해할 수 있도록 하기 위한 것입니다. 이 문자열이 현재 시스템 문화권에 맞게 지역화되었는지 확인하려면 이 생성자의 호출자가 필요합니다.

설명

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

재산 가치
InnerException Null 참조(Nothing Visual Basic의 경우)입니다.
Message 오류 메시지 문자열입니다.

적용 대상

StackOverflowException(String, Exception)

Source:
StackOverflowException.cs
Source:
StackOverflowException.cs
Source:
StackOverflowException.cs
Source:
StackOverflowException.cs
Source:
StackOverflowException.cs

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

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

매개 변수

message
String

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

innerException
Exception

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

설명

이전 예외의 직접적인 결과로 throw되는 예외에는 속성의 이전 예외에 대한 참조가 InnerException 포함될 수 있습니다. 속성이 InnerException 생성자에 내부 예외 값을 제공하지 않는 경우 생성자에 전달된 것과 동일한 값을 반환하거나, 속성이 생성자에 내부 예외 값을 제공하지 않는 경우 InnerException null 참조(NothingVisual Basic)를 반환합니다.

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

재산 가치
InnerException 내부 예외 참조입니다.
Message 오류 메시지 문자열입니다.

추가 정보

적용 대상