PubNubException

actual 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.

expect 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(pubnubError: PubNubError, cause: Throwable?)
actual constructor(errorMessage: String?, statusCode: Int, cause: Throwable?)
actual constructor(errorMessage: String?, cause: Throwable?)
constructor(statusCode: Int = 0, errorMessage: String?, cause: Throwable?)
actual constructor(pubnubError: PubNubError, cause: Throwable?)
actual constructor(errorMessage: String?, statusCode: Int, cause: Throwable?)
actual constructor(errorMessage: String?, cause: Throwable?)
constructor(pubnubError: PubNubError, message: String)
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)
actual constructor(pubnubError: PubNubError, cause: Throwable?)
actual constructor(errorMessage: String?, statusCode: Int, cause: Throwable?)
actual constructor(errorMessage: String?, cause: Throwable?)
expect constructor(pubnubError: PubNubError, cause: Throwable? = null)
expect constructor(errorMessage: String?, statusCode: Int, cause: Throwable? = null)
expect constructor(errorMessage: String?, cause: Throwable? = null)

Types

Link copied to clipboard
actual object Companion
actual object Companion
actual object Companion
expect 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<*>? = null

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

Link copied to clipboard
Link copied to clipboard
cause
Link copied to clipboard
open val cause: Throwable?
open val cause: Throwable?
open override val cause: Throwable? = null
open val cause: Throwable?
Link copied to clipboard
val errorMessage: String? = null

The error message received from the server, if any.

Link copied to clipboard
val jso: String? = null

The error json received from the server, if any.

message
Link copied to clipboard
open val message: String?
open val message: String?
open val message: String?
open val message: String?
Link copied to clipboard
val pubnubError: PubNubError? = null

The appropriate matching PubNub error.

Link copied to clipboard
val remoteAction: ExtendedRemoteAction<*>? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
actual val statusCode: Int = 0

HTTP status code.

actual val statusCode: Int = 0

HTTP status code.

actual val statusCode: Int = 0

HTTP status code.

expect val statusCode: Int

HTTP status code.

Functions

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