Class HttpErrorResponseException
public class HttpErrorResponseException : Exception, ISerializable
- Inheritance
-
HttpErrorResponseException
- Implements
- Inherited Members
Constructors
HttpErrorResponseException(IWebResponseData)
public HttpErrorResponseException(IWebResponseData response)
Parameters
response
IWebResponseData
HttpErrorResponseException(SerializationInfo, StreamingContext)
Constructs a new instance of the HttpErrorResponseException class with serialized data.
protected HttpErrorResponseException(SerializationInfo info, StreamingContext context)
Parameters
info
SerializationInfoThe SerializationInfo that holds the serialized object data about the exception being thrown.
context
StreamingContextThe StreamingContext that contains contextual information about the source or destination.
Exceptions
- ArgumentNullException
The
info
parameter is null.- SerializationException
The class name is null or HResult is zero (0).
HttpErrorResponseException(string, IWebResponseData)
public HttpErrorResponseException(string message, IWebResponseData response)
Parameters
message
stringresponse
IWebResponseData
HttpErrorResponseException(string, Exception, IWebResponseData)
public HttpErrorResponseException(string message, Exception innerException, IWebResponseData response)
Parameters
message
stringinnerException
Exceptionresponse
IWebResponseData
Properties
Response
public IWebResponseData Response { get; }
Property Value
Methods
GetObjectData(SerializationInfo, StreamingContext)
Sets the SerializationInfo with information about the exception.
[SecurityCritical]
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
info
SerializationInfoThe SerializationInfo that holds the serialized object data about the exception being thrown.
context
StreamingContextThe StreamingContext that contains contextual information about the source or destination.
Exceptions
- ArgumentNullException
The
info
parameter is a null reference (Nothing in Visual Basic).