@@ -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