HttpParseException 생성자

정의

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

오버로드

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

현재 예외의 원인인 예외입니다. innerExceptionnull이 아니면 현재 예외는 내부 예외를 처리하는 catch 블록에서 발생합니다.

virtualPath
String

예외의 가상 경로입니다.

sourceCode
String

예외가 발생할 때 컴파일 중이었던 소스 코드입니다.

line
Int32

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

적용 대상