Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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

Initializes a new instance of the HttpParseException class with specific information about the source code being compiled and the line number on which the exception occurred.

Namespace:  System.Web
Assembly:  System.Web (in System.Web.dll)

public HttpParseException(
	string message,
	Exception innerException,
	string virtualPath,
	string sourceCode,
	int line


Type: System.String

The exception message to specify when the error occurs.

Type: System.Exception

The exception that is the cause of the current exception. If innerException is not null, the current exception is raised in a catch block that handles the inner exception.

Type: System.String

The virtual path for the exception.

Type: System.String

The source code being compiled when the exception occurs.

Type: System.Int32

The line number on which the exception occurred.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
© 2015 Microsoft