An exception object should not have pointer type
An exception object should not have pointer type.
The checker raises a violation if a
throw statement throws an
exception of pointer type.
The checker does not raise a violation if a NULL pointer is thrown as exception. Throwing a
NULL pointer is forbidden by MISRA C++:2008 Rule
15-1-2.
If you expect a rule violation but do not see it, refer to Coding Standard Violations Not Displayed.
| Group: Exception Handling |
| Category: Advisory |