HttpException

HttpException

System.Web (system.web.dll)class

This class encapsulates an ASP.NET exception. It is a standard exception object, with the addition of the GetHtmlErrorMessage( ) method and the GetHttpCode( ) method, that returns the HTTP error code representing the error (like 404 for file not found) as an integer. If no HTTP error code exists for the current exception or the InnerException, the status code 500 is returned.

public class HttpException : System.Runtime.InteropServices.ExternalException { // Public Constructors    public HttpException( );    public HttpException(int httpCode, string message);    public HttpException(int httpCode, string message, Exception innerException);    public HttpException(int httpCode, string message, int hr);    public HttpException(string message);    public HttpException(string message, Exception innerException);    public HttpException(string message, int hr); // Public Static Methods    public static HttpException CreateFromLastError(string message); // Public Instance Methods    public string GetHtmlErrorMessage( );    public int GetHttpCode( ); }

Hierarchy

System.Object System.Exception(System.Runtime.Serialization.ISerializable) System.SystemException System.Runtime.InteropServices.ExternalException HttpException

Subclasses

HttpCompileException, HttpParseException, HttpRequestValidationException, HttpUnhandledException



ASP. NET in a Nutshell
ASP.NET in a Nutshell, Second Edition
ISBN: 0596005202
EAN: 2147483647
Year: 2003
Pages: 873

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net