Empty Catch Block (ARCH8150)
Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.
Key kotlin.logging.empty-catch-block · Severity error · Category logging
Flags catch blocks with no statements - the failure disappears.
Incorrect
Section titled “Incorrect”try { save() } catch (e: IOException) { }Correct
Section titled “Correct”try { save() } catch (e: IOException) { logger.error("save failed", e); throw e }Log with the exception object, rethrow, or document why ignoring is correct.