@@ -56,43 +56,43 @@ object Utils {
5656 )
5757 }
5858
59- override fun reject (code : String , userInfo : WritableMap ) {
59+ override fun reject (code : String? , userInfo : WritableMap ) {
6060 val errorMessage = " Error: $code \n UserInfo: $userInfo "
6161 continuation.resumeWithException(
6262 Exception (errorMessage)
6363 )
6464 }
6565
66- override fun reject (code : String , message : String? ) {
66+ override fun reject (code : String? , message : String? ) {
6767 val errorMessage = " Error: $code \n Message: ${message ? : " No message provided" } "
6868 continuation.resumeWithException(
6969 Exception (errorMessage)
7070 )
7171 }
7272
73- override fun reject (code : String , message : String? , userInfo : WritableMap ) {
73+ override fun reject (code : String? , message : String? , userInfo : WritableMap ) {
7474 val errorMessage =
7575 " Error: $code \n Message: ${message ? : " No message provided" } \n UserInfo: $userInfo "
7676 continuation.resumeWithException(
7777 Exception (errorMessage)
7878 )
7979 }
8080
81- override fun reject (code : String , message : String? , throwable : Throwable ? ) {
81+ override fun reject (code : String? , message : String? , throwable : Throwable ? ) {
8282 val errorMessage = " Error: $code \n Message: ${message ? : " No message provided" } "
8383 continuation.resumeWithException(
8484 throwable ? : Exception (errorMessage)
8585 )
8686 }
8787
88- override fun reject (code : String , throwable : Throwable ? ) {
88+ override fun reject (code : String? , throwable : Throwable ? ) {
8989 val errorMessage = " Error: $code "
9090 continuation.resumeWithException(
9191 throwable ? : Exception (errorMessage)
9292 )
9393 }
9494
95- override fun reject (code : String , throwable : Throwable ? , userInfo : WritableMap ) {
95+ override fun reject (code : String? , throwable : Throwable ? , userInfo : WritableMap ) {
9696 val errorMessage = " Error: $code \n UserInfo: $userInfo "
9797 continuation.resumeWithException(
9898 throwable ? : Exception (errorMessage)
0 commit comments