PubNubException

actual class PubNubException : <ERROR CLASS> ERROR CLASS: Symbol not found for Exception

Custom exception wrapper for errors occurred during execution or processing of a PubNub API operation.

expect class PubNubException : Exception

Custom exception wrapper for errors occurred during execution or processing of a PubNub API operation.

actual class PubNubException : Exception

Custom exception wrapper for errors occurred during execution or processing of a PubNub API operation.

actual data class PubNubException : Exception

Custom exception wrapper for errors occurred during execution or processing of a PubNub API operation.

Constructors

Link copied to clipboard
constructor(statusCode: Int = 0, errorMessage: String?, cause: Throwable?)
actual constructor(errorMessage: String?, cause: Throwable?)
actual constructor(pubnubError: PubNubError, cause: Throwable?)
actual constructor(errorMessage: String?, statusCode: Int, cause: Throwable?)
expect constructor(errorMessage: String?, cause: Throwable? = null)
expect constructor(pubnubError: PubNubError, cause: Throwable? = null)
expect constructor(errorMessage: String?, statusCode: Int, cause: Throwable? = null)
constructor(statusCode: Int = 0, errorMessage: String?, cause: Throwable?)
actual constructor(errorMessage: String?, cause: Throwable?)
actual constructor(pubnubError: PubNubError, cause: Throwable?)
actual constructor(errorMessage: String?, statusCode: Int, cause: Throwable?)
constructor(errorMessage: String? = null, pubnubError: PubNubError? = null, jso: String? = null, statusCode: Int = 0, affectedCall: Call<*>? = null, retryAfterHeaderValue: Int? = null, affectedChannels: List<String> = emptyList(), affectedChannelGroups: List<String> = emptyList(), cause: Throwable? = null, requestInfo: PubNubException.RequestInfo? = null, remoteAction: ExtendedRemoteAction<*>? = null)
constructor(pubnubError: PubNubError, message: String)
actual constructor(errorMessage: String?, cause: Throwable?)
actual constructor(pubnubError: PubNubError, cause: Throwable?)
actual constructor(errorMessage: String?, statusCode: Int, cause: Throwable?)

Types

Link copied to clipboard
actual object Companion
expect object Companion
actual object Companion
actual object Companion
Link copied to clipboard
data class RequestInfo(val tlsEnabled: Boolean, val origin: String, val uuid: String?, val authKey: String?, val clientRequest: Request)

Properties

Link copied to clipboard
val affectedCall: Call<*>?

A reference to the affected call. Useful for calling retry.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
expect open val cause: Throwable?
open val cause: Throwable?
open override val cause: Throwable?
Link copied to clipboard

The error message received from the server, if any.

Link copied to clipboard
val jso: String?

The error json received from the server, if any.

Link copied to clipboard
message
Link copied to clipboard
expect open val message: String?
open val message: String?
open val message: String?
Link copied to clipboard

The appropriate matching PubNub error.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
actual val statusCode: Int

HTTP status code.

expect val statusCode: Int

HTTP status code.

actual val statusCode: Int

HTTP status code.

actual val statusCode: Int

HTTP status code.

Link copied to clipboard

Functions

Link copied to clipboard
open override fun toString(): String