Skip to content

Files

Latest commit

 

History

History
16 lines (10 loc) · 478 Bytes

File metadata and controls

16 lines (10 loc) · 478 Bytes

Pattern: Use of throw

Issue: -

Description

throw statements should be replaced with type-safe error constructs like Try and Either, which communicate the possibility of error in the type signature.

Example configuration

<check enabled="true" class="org.scalastyle.scalariform.ThrowChecker" level="warning"/>

Further Reading