Do it in the same way as Java: prohibit inner classes (including anonymous inner classes) capturing type parameters from outer classes (but not outer methods) extending Throwable. See KT-17981: - Deprecated in 1.2 - Error in 1.3