Introduce HeaderException
- Dominant language
- C#
- Stars
- 1.8k
- Forks
- 576
- Avg merge
- 6d 9h
- Merged PRs (30d)
- 2
Description
I use WCF client to work with EWS SOAP client. There are cases when a service returns answer like below:

Usually, it is handled properly and I get a FaultException. But in my case I set MessageVersion as Soap11 without adressing.

And due to that, WCF throw an InvalidOperationException with message
`Addressing Version 'AddressingNone (http://schemas.microsoft.com/ws/2005/05/addressing/none)' does not support adding WS-Addressing headers`
I am OK with that behavior but I would like to ask to make the exception more unique. Because I want to handle that case properly but there is only one way to recognize my cause is checking an error message in the exception.
It would be nice to have something like special exception like HeaderException or have uniq error code in Data field in InvalidOperationException.
Contributor guide
Assessment
This issue has not been assessed yet.