Qt-Autosar-A15.1.2ΒΆ

An exception object shall not be a pointer

Required inputs: IR

Do not use new when throwing exceptions, as it is unclear who would have the responsibility for freeing the exception object. Instead, throw exceptions by value.
Example
try
{
    throw MyException(args);
}
catch (const MyException& ex)
{
    ...
}

Possible Messages

Key

Text

Severity

Disabled

throwing_pointer

Exception object of pointer type

None

False

Options