The caught exception is too generic. Prefer catching specific exceptions to the case that is currently handled.
codacy-production opened this issue · 0 comments
codacy-production commented
Codacy detected an issue:
Message: The caught exception is too generic. Prefer catching specific exceptions to the case that is currently handled.
Occurred on:
- Commit: d26872c
- File: src/main/kotlin/io/github/yamin8000/twitterscrapper/web/Client.kt
- LineNum: 22
- Code:
} catch (e: Exception) {
Currently on:
- Commit: 50a0767
- File: src/main/kotlin/io/github/yamin8000/twitterscrapper/web/Client.kt
- LineNum: 31