Skip to content

Commit fe7639e

Browse files
Update README.md
1 parent 9ca3fed commit fe7639e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ Unlike Java's checked exceptions, **CheckedExceptions** is **opt-in** and treats
6363

6464
- **Prevention of Duplicate Throws Attributes (`THROW005`):**
6565
- Detects multiple `ThrowsAttribute` declarations for the same exception type within a method or function to eliminate redundancy.
66+
67+
- **Missing [Throws] on base member (THROW006):**
68+
- Reports when an overridden or implemented member declares an exception not present on the corresponding base member.
69+
70+
- **Missing [Throws] from derived member (THROW007):**
71+
- Reports when a base or interface member declares an exception that is not declared by the overriding or implementing member.
6672

6773
- **Comprehensive Analysis:**
6874
- Analyzes various C# constructs including methods, constructors, lambda expressions, local functions, property accessors, event assignments, and more to ensure consistent exception handling.
@@ -304,7 +310,9 @@ Consider the following configuration:
304310
| `THROW002` | Informational: Ignored exception may cause runtime issues |
305311
| `THROW003` | **General `ThrowsAttribute` usage:** Flags the use of general `Exception` types in `ThrowsAttribute`, encouraging more specific exception declarations. |
306312
| `THROW004` | **General exception thrown:** Warns against throwing the general `System.Exception` type directly in the code. |
307-
| `THROW005` | **Duplicate exception declarations:** Detects duplicate declarations for the same exception type within a method or function. Multiple `ThrowsAttribute` declaring the same exception. |
313+
| `THROW005` | **Duplicate exception declarations:** Detects duplicate declarations for the same exception type within a method or function. Multiple `ThrowsAttribute` declaring the same exception. |
314+
| `THROW006` | **Missing `[Throws]` on base member:** Declared exception on overriding or implementing member is not present on the corresponding base member. |
315+
| `THROW007` | **Missing `[Throws]` from derived member:** Base or interface member declares an exception that is not declared by the overriding or implementing member. |
308316

309317
## Example
310318

0 commit comments

Comments
 (0)