Skip to content

Commit bda86a2

Browse files
RenanODrenanod
andauthored
Issue #127: remove obsolete exception (#133)
Co-authored-by: renanod <renan.oclides@trocosimples.com.br>
1 parent 9fab791 commit bda86a2

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

docs/Guidelines(8th Edition).xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
<guideline key="Ch05_cab2aca" severity="AVOID" section="Coding" subsection="Exceptions">AVOID explicitly throwing exceptions from finally blocks. (Implicitly thrown exceptions resulting from method calls are acceptable.)</guideline>
4949
<guideline key="Ch05_34bdd36" severity="DO" section="Coding" subsection="Exceptions">DO favor try/finally and avoid using try/catch for cleanup code.</guideline>
5050
<guideline key="Ch05_888a64e" severity="DO" section="Coding" subsection="Exceptions">"DO throw exceptions that describe which exceptional circumstance occurred, and if possible, how to prevent it."</guideline>
51-
<guideline key="Ch05_79a6a92" severity="AVOID" section="Coding" subsection="Exceptions">AVOID general catch blocks and replace them with a catch of System.Exception.</guideline>
5251
<guideline key="Ch05_75f9029" severity="AVOID" section="Coding" subsection="Exceptions">AVOID catching exceptions for which the appropriate action is unknown. It is better to let an exception go unhandled than to handle it incorrectly.</guideline>
5352
<guideline key="Ch05_0f98c19" severity="AVOID" section="Coding" subsection="Exceptions">"AVOID catching and logging an exception before rethrowing it. Instead, allow the exception to escape until it can be handled appropriately."</guideline>
5453
<guideline key="Ch05_6f18913" severity="DO" section="Coding" subsection="Exceptions">DO prefer using an empty throw when catching and rethrowing an exception so as to preserve the call stack.</guideline>

docs/coding/csharp.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@
123123
- :no_entry: AVOID explicitly throwing exceptions from finally blocks. (Implicitly thrown exceptions resulting from method calls are acceptable.)
124124
- :heavy_check_mark: DO favor try/finally and avoid using try/catch for cleanup code.
125125
- :heavy_check_mark: DO throw exceptions that describe which exceptional circumstance occurred, and if possible, how to prevent it.
126-
- :no_entry: AVOID general catch blocks and replace them with a catch of System.Exception.
127126
- :no_entry: AVOID catching exceptions for which the appropriate action is unknown. It is better to let an exception go unhandled than to handle it incorrectly.
128127
- :no_entry: AVOID catching and logging an exception before rethrowing it. Instead, allow the exception to escape until it can be handled appropriately.
129128
- :heavy_check_mark: DO prefer using an empty throw when catching and rethrowing an exception so as to preserve the call stack.

0 commit comments

Comments
 (0)