Target filter
Search Kotlin docs
  • Back
  • Tealium Prism Kotlin SDK Reference
core/com.tealium.prism.core.api.network/NetworkException/UnexpectedException

UnexpectedException

class UnexpectedException @JvmOverloads constructor(cause: Throwable?, val httpResponse: HttpResponse? = null) : NetworkException

Indicates that a network request failed for an unknown reason. It is therefore unknown whether it is safe to retry the request, so it is deemed not safe to retry.

Parameters

cause

The underlying cause of the failure, if available

httpResponse

The response, if one was received before the failure

Constructors

UnexpectedException
Link copied to clipboard
@JvmOverloads
constructor(cause: Throwable?, httpResponse: HttpResponse? = null)

Properties

cause
Link copied to clipboard
open val cause: Throwable?
httpResponse
Link copied to clipboard
val httpResponse: HttpResponse? = null
message
Link copied to clipboard
open val message: String?

Functions

isRetryable
Link copied to clipboard
open override fun isRetryable(): Boolean
toString
Link copied to clipboard
open override fun toString(): String
Generated by Dokka
(c) Tealium 2026