Skip to content

Files

Latest commit

 

History

History
23 lines (15 loc) · 499 Bytes

Lint-RaiseException.md

File metadata and controls

23 lines (15 loc) · 499 Bytes

Pattern: Missing use of StandardError over Exception

Issue: -

Description

This rule checks for raise or fail statements which are raising Exception class.

Examples

# bad
raise Exception, 'Error message here'

# good
raise StandardError, 'Error message here'

Further Reading