İçeriğe geç

İptal yutuluyor (ARCH8168)

Anahtar kotlin.logging.cancellation-swallowed · Önem warning · Kategori logging

CancellationException / InterruptedException’ı yeniden fırlatmadan ya da yeniden kesmeden yakalayan catch bloklarını işaretler - iptal yayılmayı bırakır.

catch (e: CancellationException) { log.warn("cancelled") }
catch (e: CancellationException) { cleanup(); throw e }

CancellationException’ı yeniden fırlatın; InterruptedException için Thread.currentThread().interrupt() çağırın.