This documentation is archived and is not being maintained.
HttpException Methods
.NET Framework 1.1
The methods of the HttpException class are listed here. For a complete list of HttpException class members, see the HttpException Members topic.
Public Methods
![]() CreateFromLastError | Creates a new Exception based on the error code returned from the Win32 API GetLastError() method. |
Equals (inherited from Object) | Overloaded. Determines whether two Object instances are equal. |
GetBaseException (inherited from Exception) | When overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions. |
GetHashCode (inherited from Object) | Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetHtmlErrorMessage | Returns the HTML error message to send back to the client. |
GetHttpCode | Returns the HTTP error code to send back to the client. If there is a nonzero HTTP code, it is returned. Otherwise, the InnerException code is returned. If neither an InnerException code nor a nonzero HTTP code is available, the HTTP error code 500 is returned. |
GetObjectData (inherited from Exception) | When overridden in a derived class, sets the SerializationInfo with information about the exception. |
GetType (inherited from Object) | Gets the Type of the current instance. |
ToString (inherited from Exception) | Overridden. Creates and returns a string representation of the current exception. |
Protected Methods
Finalize (inherited from Object) | Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
In C# and C++, finalizers are expressed using destructor syntax. |
MemberwiseClone (inherited from Object) | Creates a shallow copy of the current Object. |
See Also
Show:
