HttpParseException 생성자

정의

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

오버로드

Name Description
HttpParseException()

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

HttpParseException(String)

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

HttpParseException(String, Exception)

지정된 오류 메시지와 내부 참조를 사용하여 클래스의 HttpParseException 새 인스턴스를 초기화합니다.

HttpParseException(String, Exception, String, String, Int32)

컴파일되는 소스 코드 및 예외가 발생한 줄 번호에 대한 특정 정보를 사용하여 클래스의 새 인스턴스 HttpParseException 를 초기화합니다.

HttpParseException()

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

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

적용 대상

HttpParseException(String)

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

public:
 HttpParseException(System::String ^ message);
public HttpParseException(string message);
new System.Web.HttpParseException : string -> System.Web.HttpParseException
Public Sub New (message As String)

매개 변수

message
String

오류가 발생하는 시기를 지정하는 예외 메시지입니다.

예제

다음 예제에서는 생성자의 사용을 HttpException 보여 줍니다. 전체 작업 코드 예제는 개요 항목을 참조 HttpParseException 하세요.

throw new HttpParseException("This custom HtmlSelect control" +                                                  "requires child elements of the form \"MyCustomOption\"");
Throw New HttpParseException("This custom HtmlSelect control" & _ 
         "requires child elements of the form ""MyCustomOption""")

적용 대상

HttpParseException(String, Exception)

지정된 오류 메시지와 내부 참조를 사용하여 클래스의 HttpParseException 새 인스턴스를 초기화합니다.

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

매개 변수

message
String

오류가 발생하는 시기를 지정하는 예외 메시지입니다.

innerException
Exception

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

적용 대상

HttpParseException(String, Exception, String, String, Int32)

컴파일되는 소스 코드 및 예외가 발생한 줄 번호에 대한 특정 정보를 사용하여 클래스의 새 인스턴스 HttpParseException 를 초기화합니다.

public:
 HttpParseException(System::String ^ message, Exception ^ innerException, System::String ^ virtualPath, System::String ^ sourceCode, int line);
public HttpParseException(string message, Exception innerException, string virtualPath, string sourceCode, int line);
new System.Web.HttpParseException : string * Exception * string * string * int -> System.Web.HttpParseException
Public Sub New (message As String, innerException As Exception, virtualPath As String, sourceCode As String, line As Integer)

매개 변수

message
String

오류가 발생하는 시기를 지정하는 예외 메시지입니다.

innerException
Exception

현재 예외의 원인인 예외입니다. 그렇지 않은 innerException경우 null 내부 예외를 catch 처리하는 블록에서 현재 예외가 발생합니다.

virtualPath
String

예외의 가상 경로입니다.

sourceCode
String

예외가 발생할 때 컴파일되는 소스 코드입니다.

line
Int32

예외가 발생한 줄 번호입니다.

적용 대상