## SoapMessage::SetException method


Sets the exception that is thrown by the XML [Web](../../../system.web/) service method.

```cpp
void System::Web::Services::Protocols::SoapMessage::SetException(SoapException ex)
```


| Parameter | Type | Description |
| --- | --- | --- |
| ex | SoapException | The exception that must be set. |

## See Also

* Typedef [SoapException](../../soapexception/)
* Class [SoapMessage](../)
* Namespace [System::Web::Services::Protocols](../../)
* Library [Aspose.PDF for C++](../../../)
