Exception is a too generic Exception. Prefer throwing specific exceptions that indicate a specific error case.
codacy-production opened this issue · 0 comments
codacy-production commented
Codacy detected an issue:
Message: Exception is a too generic Exception. Prefer throwing specific exceptions that indicate a specific error case.
Occurred on:
- Commit: d26872c
- File: src/main/kotlin/io/github/yamin8000/twitterscrapper/helpers/UserTweetsRequest.kt
- LineNum: 46
- Code:
} else throw Exception("Failed to retrieve tweets page for $username")
Currently on:
- Commit: 50a0767
- File: src/main/kotlin/io/github/yamin8000/twitterscrapper/helpers/UserTweetsRequest.kt
- LineNum: 46