WebServiceException constructor (1 of 4)

Initializes a new instance of the WebServiceException class.

public WebServiceException()

See Also


WebServiceException constructor (2 of 4)

Initializes a new instance of the WebServiceException class.

public WebServiceException(string message)
parameter description
message The message.

See Also


WebServiceException constructor (3 of 4)

Initializes a new instance of the WebServiceException class.

public WebServiceException(string message, Exception innerException)
parameter description
message The message.
innerException The inner exception.

See Also


WebServiceException constructor (4 of 4)

Initializes a new instance of the WebServiceException class.

public WebServiceException(string? message = null, string? requestMethod = null, 
    Uri? requestUri = null, HttpStatusCode? responseStatusCode = default, 
    HttpHeaders? responseHeaders = null, string? responseContentType = null, 
    long? responseContentLength = null, string? responseContentPreview = null, 
    Exception? innerException = null)
parameter description
message The message.
requestMethod The request method.
requestUri The request URI.
responseStatusCode The response status code.
responseHeaders The response headers.
responseContentType The response content type.
responseContentLength The response content length.
responseContentPreview A preview of the response content (as a string, possibly abbreviated).
innerException The inner exception.

See Also