Exception Guard helps you write safer Kotlin code by detecting potential exceptions in your functions, methods, and classes.
Many apps crash unexpectedly because Kotlin does not enforce checked exceptions (unlike Java). This plugin makes those risks visible directly in the IDE, so you can handle them before they cause runtime errors.
-
🔍 Kotlin - Java Function body checking
Detectsthrowstatements inside functions and highlights them as warnings. -
📖 Doc read
If function KDoc contains@throws, a warning will be highlighted. -
🏷️ @Throws annotation checking
Functions annotated with@Throws(...)will be detected and highlighted. -
☕ Java interop throws checking
If a Java function declaresthrows, e.g.public void func() throws IllegalArgumentException { ... }
Kotlin does not support checked exceptions. This means developers often miss possible throws in code and documentation. As a result, many crashes happen silently and unpredictably.
Exception Guard ensures you are aware of every possible exception point in your codebase.
From JetBrains Marketplace
EDIT: Pushed version 1.0.3: It will also check runCatching blocks and wont be highlighted if found. And for local kotlin files constructor, initblock, function checks added.
