public class TooGenericExceptionThrown
This rule reports thrown exceptions that have a type that is too generic. It should be preferred to throw specific exceptions to the case that has currently occurred.
Modifier and Type | Class and Description |
---|---|
static class |
TooGenericExceptionThrown.Companion |
Modifier and Type | Field and Description |
---|---|
static TooGenericExceptionThrown.Companion |
Companion |
static java.lang.String |
THROWN_EXCEPTIONS_PROPERTY |
Constructor and Description |
---|
TooGenericExceptionThrown(io.gitlab.arturbosch.detekt.api.Config config)
This rule reports thrown exceptions that have a type that is too generic. It should be preferred to throw specific
exceptions to the case that has currently occurred.
|
Modifier and Type | Method and Description |
---|---|
io.gitlab.arturbosch.detekt.api.Issue |
getIssue() |
void |
visitThrowExpression(org.jetbrains.kotlin.psi.KtThrowExpression expression) |
public static java.lang.String THROWN_EXCEPTIONS_PROPERTY
public static TooGenericExceptionThrown.Companion Companion