commonMain.com.apollographql.apollo3.exception.ApolloExceptionHandler.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apollo-api-jvm Show documentation
Show all versions of apollo-api-jvm Show documentation
Apollo GraphQL API classes
package com.apollographql.apollo3.exception
import com.apollographql.apollo3.annotations.ApolloExperimental
private val DEFAULT_EXCEPTION_HANDLER: (Throwable) -> Unit = {
println("Apollo: unhandled exception")
it.printStackTrace()
}
/**
* A handler that can be set to intercept certain exceptions occurring in the library that are not normally surfaced. This can be used
* to investigate issues. The default is to log the exception.
*
* On native, this needs to be set before any call to `ApolloClient.Builder.build()`
*/
@ApolloExperimental
var apolloExceptionHandler: (Throwable) -> Unit = DEFAULT_EXCEPTION_HANDLER
© 2015 - 2025 Weber Informatics LLC | Privacy Policy