Details
-
Type:
Bug Detection
-
Status: Active
-
Resolution: Unresolved
-
Labels:
-
Message:Throw this exception or remove this useless statement
-
Highlighting:
-
Default Severity:Major
-
Impact:Low
-
Likelihood:High
-
Default Quality Profiles:Sonar way
-
Targeted languages:C++
-
Covered Languages:C#, Java, JavaScript, PHP, Python, TypeScript
-
Irrelevant for Languages:Python, Swift, VB.Net
-
Remediation Function:Constant/Issue
-
Constant Cost:2min
-
Analysis Scope:Main Sources, Test Sources
-
FindBugs:RV_EXCEPTION_NOT_THROWN
Description
Attachments
Issue Links
- is implemented by
-
SONARJAVA-2264 Rule: Exception should not be created without being thrown
-
- Closed
-
-
SONARPHP-716 Rule S3984: Exception should not be created without being thrown
-
- Closed
-
-
SONARPY-666 Rule S3984: Exceptions should not be created without being raised
-
- Closed
-
-
SONARPY-795 S3984 should raise an issue when the class hierarchy has multiple levels
-
- Open
-
- is related to
-
SONARJAVA-3958 Add quick fixes for S3984 (UnusedThrowableCheck)
-
- Closed
-
- relates to
-
SONARPY-617 S3984: Fix FP when wildcard importing redefined builtin
-
- Open
-
- links to
(1 relates to, 3 links to)
1.
|
C# | RSPEC-4012 |
|
Active | Unassigned | |
2.
|
VB.NET | RSPEC-4244 |
|
Closed | Unassigned | |
3.
|
JavaScript: Errors should not be created without being thrown | RSPEC-4268 |
|
Active | Unassigned | |
4.
|
PHP | RSPEC-4315 |
|
Active | Unassigned | |
5.
|
Python: Exceptions should not be created without being raised | RSPEC-5789 |
|
Active | Unassigned |