我收到下面提到的无法从 Android Apollo GraphQL 处理的异常
com.apollographql.apollo3.exception.ApolloHttpException: Http request failed with status code `403` at com.apollographql.apollo3.network.http.HttpNetworkTransport$execute$1.invokeSuspend(HttpNetworkTransport.kt:66) at com.apollographql.apollo3.network.http.HttpNetworkTransport$execute$1.invoke(Unknown Source:8) at com.apollographql.apollo3.network.http.HttpNetworkTransport$execute$1.invoke(Unknown Source:4) at kotlinx.coroutines.flow.SafeFlow.collectSafely(Builders.kt:61)
at kotlinx.coroutines.flow.AbstractFlow.collect(Flow.kt:230) at kotlinx.coroutines.flow.internal.ChannelFlowOperatorImpl.flowCollect(ChannelFlow.kt:195) at kotlinx.coroutines.flow.internal.ChannelFlowOperator.collect$suspendImpl(ChannelFlow.kt:167) at kotlinx.coroutines.flow.internal.ChannelFlowOperator.collect(Unknown Source:0) at kotlinx.coroutines.flow.FlowKt__ReduceKt.single(Reduce.kt:57)
at kotlinx.coroutines.flow.FlowKt.single(Unknown Source:1)
at com.apollographql.apollo3.ApolloCall.execute(ApolloCall.kt:102)
https://www.apollographql.com/docs/kotlin/essentials/errors
suspend fun getResul() : ApolloResponse<StudentQuery.Data> {
val response = try {
apolloClient.query(GetStudentQuery()).execute()
} catch(exception: ApolloHttpException) {
throw exception
}
return response
}
应用程序崩溃的如何处理这个异常
提前致谢。