StackOverflowException 생성자

정의

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

오버로드

StackOverflowException()

StackOverflowException 클래스의 새 인스턴스를 초기화하고, 새 인스턴스의 Message 속성을 오류를 설명하는 시스템 제공 메시지(예: "요청한 작업 때문에 스택 오버플로가 발생했습니다.")로 설정합니다. 이 메시지는 현재 시스템 culture를 고려합니다.

StackOverflowException(String)

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

StackOverflowException(String, Exception)

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

StackOverflowException()

StackOverflowException 클래스의 새 인스턴스를 초기화하고, 새 인스턴스의 Message 속성을 오류를 설명하는 시스템 제공 메시지(예: "요청한 작업 때문에 스택 오버플로가 발생했습니다.")로 설정합니다. 이 메시지는 현재 시스템 culture를 고려합니다.

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

설명

다음 표에는 StackOverflowException의 인스턴스의 초기 속성 값이 나와 있습니다.

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

적용 대상

StackOverflowException(String)

지정된 오류 메시지를 사용하여 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

오류를 설명하는 String입니다. 메시지 내용은 사용자의 이해를 돕기 위한 것입니다. 현재 시스템 culture에 대해 이 문자열이 지역화되었는지 확인하려면 이 생성자의 호출자가 필요합니다.

설명

다음 표에는 StackOverflowException의 인스턴스의 초기 속성 값이 나와 있습니다.

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

적용 대상

StackOverflowException(String, Exception)

지정된 오류 메시지와 해당 예외의 원인인 내부 예외에 대한 참조를 사용하여 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 참조(Visual Basic에서는 Nothing)가 아니면, 현재 예외는 내부 예외를 처리하는 catch 블록에서 발생한 것입니다.

설명

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

다음 표에는 StackOverflowException의 인스턴스의 초기 속성 값이 나와 있습니다.

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

추가 정보

적용 대상