Name

WebException

Synopsis

This exception represents an error that occurred while using a protocol-specific implementation of WebRequest. In the case of some protocols, such as HTTP, the exception’s Response property contains information about the error that occurred.

Public Class WebException : Inherits InvalidOperationException
' Public Constructors
   Public Sub New() 
   Public Sub New( ByVal message As String) 
   Public Sub New(ByVal message As String, 
        ByVal innerException As Exception) 
   Public Sub New(ByVal message As String, 
        ByVal innerException As Exception, 
        ByVal status As WebExceptionStatus, 
        ByVal response As WebResponse) 
   Public Sub New(ByVal message As String, 
        ByVal status As WebExceptionStatus) 
' Protected Constructors
   Protected Sub New(
        ByVal serializationInfo As System.Runtime.Serialization.SerializationInfo, 
        ByVal streamingContext As System.Runtime.Serialization.StreamingContext) 
' Public Instance Properties
   Public ReadOnly Property Response As WebResponse  
   Public ReadOnly Property Status As WebExceptionStatus  
End Class

Hierarchy

System.ObjectSystem.Exception(System.Runtime.Serialization.ISerializable)System.SystemExceptionSystem.InvalidOperationException WebException

Get VB.NET Core Classes in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.