rspec/rules/S1045/comments-and-links.adoc

34 lines
1.9 KiB
Plaintext
Raw Normal View History

=== Related: RSPEC-1046
=== On 2014-10-14T16:40:20Z Ann Campbell Wrote:
\[~samuel.mercier], please fix the following:
* Code should be quoted in the message
* Add a See section to the description listing the appropriate MISRA number
* Fill in Applicability. Almost always this is both Sources and Tests
* Make sure the appropriate MISRA C and MISRA {cpp} fields on the references tab are filled in
* The message is worded as though there will be one issue per ``++try++``. Instead, I would recommend/expect one issue per out-of-order ``++catch++``. E.G. Move this "catch" for "xxx" above the "catch" for "yyy".
=== On 2014-10-17T13:40:01Z Ann Campbell Wrote:
FYI [~samuel.mercier] I moved this to Reliability because when the ``++catch++`` blocks are out of order, the actions expected for a subtype will never be executed.
=== On 2017-01-23T16:40:55Z Jean-Christophe Collet Wrote:
Do we need a message for the secondary catch? Right now it's a bit misleading as there is no "conflict" in either cases.
=== On 2018-03-21T19:06:57Z Ann Campbell Wrote:
ABAP: \http://www.erpworkbench.com/abap-statements/c/catc/catch_try.htm
____
A CATCH block handles the exceptions of the exception classes cx_class1 cx_class2 ... that are specified after the statement CATCH as well as the exceptions of the subclasses of these exception classes. In each CATCH statement of a TRY
control structure, you can list any number of exception classes
cx_class1 cx_class2 ... , whereby more special exception classes (subclasses) must be listed before more general exception classes (superclasses). This order must be kept both within a CATCH statement and across multiple CATCH statements of a TRY control structure.
*Latest notes:* The rule whereby CATCH special exception classes must be listed before general classes ensures that an exception is not handled by a general exception handler (superclass) if a special handler (subclass) is provided.
____