Skip to content

Files

Latest commit

 

History

History
17 lines (10 loc) · 447 Bytes

ExceptionExtendsThrowable.md

File metadata and controls

17 lines (10 loc) · 447 Bytes

Pattern: Exception extends Throwable

Issue: -

Description

Checks for classes that extend Throwable. Custom exception classes should subclass Exception or one of its descendants.

Example of violations:

class SomeException extends Throwable { }   // violation

Further Reading