Following the .NET documentation on the .NET runtime exception events, I am trying to map the ExceptionFlags whose value is UInt16
to an Enum:
[Flags]
public enum ExceptionFlags : UInt16
{
HasInnerException = 0x01,
IsNestedException = 0x02,
IsRethrownException = 0x04,
IsCorruptedException = 0x08,
IsCLSComplaint = 0x10
}
But the values that are coming from the event fall outside the values in the doc. For example I am getting 17 and sometimes 16.
What is the logic to map those values into the flags on the enum?