
496
|
Chapter 23: The System.Web Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
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.
Hierarchy
System.Object ➝ System.Exception(System.Runtime.Serialization.ISerializable) ➝ System.
SystemException
➝ System.Runtime.InteropServices.ExternalException ➝ HttpException
Subclasses
HttpCompileException, HttpParseException, HttpRequestValidationException,
HttpUnhandledException
HttpFileCollection
System.Web (system.web.dll)
sealed class
This class is a name/value collection of HttpPostedFile instances, which represents
incoming files uploaded by a client (using multipart MIME and the HTTP content
type of multipart/formdata). The HtmlInputFile class in the System.Web.UI.HtmlControls
namespace provides an easier way to allow a user to upload files.
public class HttpException : System.Runtime.InteropServices.ExternalException {
// Public Constructors
public HttpException();
public HttpException( int httpCode, string message