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 ();

Applies to

.NET Framework 4.8.1 және басқа нұсқалар
Өнім Нұсқалар
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

HttpCompileException(String)

Initializes a new instance of the HttpCompileException class.

public HttpCompileException (string message);

Parameters

message
String

The exception message to specify when the error occurs.

Applies to

.NET Framework 4.8.1 және басқа нұсқалар
Өнім Нұсқалар
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

HttpCompileException(CompilerResults, String)

Initializes a new instance of the HttpCompileException class.

public HttpCompileException (System.CodeDom.Compiler.CompilerResults results, string sourceCode);

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

.NET Framework 4.8.1 және басқа нұсқалар
Өнім Нұсқалар
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

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 (string message, Exception innerException);

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

.NET Framework 4.8.1 және басқа нұсқалар
Өнім Нұсқалар
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1