CouchbaseLiteException

A CouchbaseLiteException gets raised whenever a Couchbase Lite faces errors.

actual typealias CouchbaseLiteException = <Error class: unknown class>(source)

Constructors

Link copied to clipboard
expect constructor(message: String)

Constructs a new exception with the specified detail message.

expect constructor(message: String, cause: Exception)

Constructs a new exception with the specified cause

expect constructor(message: String, domain: String, code: Int)

Constructs a new exception with the specified detail message, error domain and error code

expect constructor(message: String, cause: Exception, domain: String, code: Int)

Constructs a new exception with the specified error domain, error code and the specified cause

actual constructor(message: String)
actual constructor(message: String, cause: Exception)
actual constructor(message: String, domain: String, code: Int)
actual constructor(message: String, cause: Exception, domain: String, code: Int)

Properties

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

The numerical error code for this error.

Link copied to clipboard

The domain code for this error.

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

Functions

Link copied to clipboard
fun Exception.toNSError(): NSError
Link copied to clipboard
open override fun toString(): String