Skip to content

Commit 956d04c

Browse files
committed
FUCK FUCK FUCK: fuck kotlin reflection
1 parent 491a265 commit 956d04c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/main/kotlin/me/ntrrgc/tsGenerator/TypeScriptGenerator.kt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,9 @@ class TypeScriptGenerator(
420420
} catch (exception: IllegalStateException) {
421421
print("Likely unable to infer accessibility: ${exception.message}")
422422
""
423+
} catch (exception: Exception) {
424+
println("Other exceptions happend ${exception.message}")
425+
""
423426
}
424427

425428
private fun javaTypeToKotlinType(type: Type): KType {
@@ -504,6 +507,9 @@ class TypeScriptGenerator(
504507
} catch (exception: IllegalStateException) {
505508
print("Likely unable to infer accessibility: ${exception.message}")
506509
""
510+
} catch (exception: Exception) {
511+
println("Other exceptions happend ${exception.message}")
512+
""
507513
}
508514

509515

@@ -548,6 +554,9 @@ class TypeScriptGenerator(
548554
} catch (exception: IllegalStateException) {
549555
println("Likely unable to infer accessibility: ${exception.message}")
550556
""
557+
} catch (exception: Exception) {
558+
println("Other exceptions happend ${exception.message}")
559+
""
551560
}
552561

553562

@@ -616,6 +625,9 @@ class TypeScriptGenerator(
616625
} catch (exception: IllegalStateException) {
617626
print("Likely unable to infer accessibility: ${exception.message}")
618627
""
628+
} catch (exception: Exception) {
629+
println("Other exceptions happend ${exception.message}")
630+
""
619631
}
620632

621633

@@ -711,6 +723,9 @@ class TypeScriptGenerator(
711723
} catch (exception: IllegalStateException) {
712724
print("Likely unable to infer accessibility: ${exception.message}")
713725
""
726+
} catch (exception: Exception) {
727+
println("Other exceptions happend ${exception.message}")
728+
""
714729
}
715730

716731

0 commit comments

Comments
 (0)