Skip to content

[New Rule] Exceptions MUST NOT be handled in the same function where they are thrown #29

Closed
@lenaorobei

Description

@lenaorobei

Rule

Exceptions MUST NOT be handled in the same function where they are thrown.

Reason

Source: Magento Technical Guidelines.

Implementation

Find try-catch block and throw keyword in the same method.
Exception type must be the same.

Addtional Information

Type: warning
Severity: 8

Metadata

Metadata

Assignees

Labels

acceptedNew rule is acceptednew ruleNew feature implementationtechnical guidelinesThe rule is based on Magento Technical Guidelines

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions