Exceptions



Exceptions

The System.Net namespace contains two exception classes that are listed in Figure, which are used to signal network-specific error conditions.

Class

Meaning

ProtocolViolationException

An error is made while using a network protocol.

WebException

An error occurs while accessing the network through a pluggable protocol. Contains status codes from WebExceptionStatus enumeration.