Pattern: Use of throw
Issue: -
throw
statements should be replaced with type-safe error constructs like Try
and Either
, which communicate the possibility of error in the type signature.
<check enabled="true" class="org.scalastyle.scalariform.ThrowChecker" level="warning"/>