Exception is a too generic Exception. Prefer throwing specific exceptions that indicate a specific error case.
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/web/Client.kt
- LineNum: 21
- Code:
else throw Exception("Request for $base$partialUrl failed, retrying.")
Currently on:
- Commit: 50a0767
- File: src/main/kotlin/io/github/yamin8000/twitterscrapper/web/Client.kt
- LineNum: 30