commonMain.com.apollographql.apollo.ApolloException.kt Maven / Gradle / Ivy
package com.apollographql.apollo
sealed class ApolloException(message: String, cause: Throwable?) : RuntimeException(message, cause)
class ApolloSerializationException(message: String, cause: Throwable? = null) : ApolloException(message = message, cause = cause)
class ApolloParseException(message: String, cause: Throwable? = null) : ApolloException(message = message, cause = cause)
class ApolloNetworkException(message: String, cause: Throwable? = null) : ApolloException(message = message, cause = cause)
class ApolloHttpException(
val statusCode: Int,
val headers: Map,
message: String,
cause: Throwable? = null
) : ApolloException(message = message, cause = cause)
class ApolloBearerTokenException(message: String, cause: Throwable? = null, val token: String): ApolloException(message = message, cause = cause)
class ApolloWebSocketException(message: String, cause: Throwable? = null) : ApolloException(message = message, cause = cause)
class ApolloWebSocketServerException(message: String, val payload: Map) : ApolloException(message = message, cause = null)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy