Redigeeri

Jagamisviis:


HttpCompileException Constructors

Definition

Initializes a new instance of the HttpCompileException class.

Overloads

HttpCompileException()

Initializes a new instance of the HttpCompileException class.

HttpCompileException(String)

Initializes a new instance of the HttpCompileException class.

HttpCompileException(CompilerResults, String)

Initializes a new instance of the HttpCompileException class.

HttpCompileException(String, Exception)

Initializes a new instance of the HttpCompileException class with a specified error message and a reference to the inner exception that is the cause of this exception.

HttpCompileException()

Initializes a new instance of the HttpCompileException class.

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

Applies to

HttpCompileException(String)

Initializes a new instance of the HttpCompileException class.

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

Parameters

message
String

The exception message to specify when the error occurs.

Applies to

HttpCompileException(CompilerResults, String)

Initializes a new instance of the HttpCompileException class.

public:
 HttpCompileException(System::CodeDom::Compiler::CompilerResults ^ results, System::String ^ sourceCode);
public HttpCompileException (System.CodeDom.Compiler.CompilerResults results, string sourceCode);
new System.Web.HttpCompileException : System.CodeDom.Compiler.CompilerResults * string -> System.Web.HttpCompileException
Public Sub New (results As CompilerResults, sourceCode As String)

Parameters

results
CompilerResults

A CompilerResults containing compiler output and error information.

sourceCode
String

The path to the file that contains the source code being compiled when the error occurs.

Remarks

For the sourceCode parameter, you can pass any string information that is descriptive to the error condition; there are no checks on file or path. The SourceCode property returns the string that was passed as the parameter value. If you use a constructor that does not require the sourceCode parameter, the SourceCode property is null.

Applies to

HttpCompileException(String, Exception)

Initializes a new instance of the HttpCompileException class with a specified error message and a reference to the inner exception that is the cause of this exception.

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

Parameters

message
String

The error message that explains the reason for the exception.

innerException
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.

Applies to