Share via


WebException Class

Defines the exception that is thrown by WebRequest instances when an error occurs.

Namespace: System.Net
Assembly: System (in system.dll)

Syntax

public class WebException : InvalidOperationException

Remarks

This class is a subclass of InvalidOperationException that contains a WebExceptionStatus and possibly a reference to a WebResponse. The WebResponse is only present if there is a response from the remote server.

Version Information

Available in the .NET Micro Framework versions 4.0, 4.1, and 4.2.

See Also

Reference

WebException Members
System.Net Namespace