JSRejectException

expect class JSRejectException(reason: String? = null, json: String? = null) : Throwable

Should be used in bind to throw an exception in JS

This exception will be caught by bind and trigger the Promise.reject(reason) in JS.

actual class JSRejectException(reason: String?, json: String?) : Throwable

Should be used in bind to throw an exception in JS

This exception will be caught by bind and trigger the Promise.reject(reason) in JS.

actual class JSRejectException(reason: String?, json: String?) : Throwable

Should be used in bind to throw an exception in JS

This exception will be caught by bind and trigger the Promise.reject(reason) in JS.

Parameters

reason

the reason shown in JS.

json

the JSON Exception object for JS. If it's not null, reason willed be covered

reason

the reason shown in JS.

json

the JSON Exception object for JS. If it's not null, reason willed be covered

reason

the reason shown in JS.

json

the JSON Exception object for JS. If it's not null, reason willed be covered

Constructors

Link copied to clipboard
expect fun JSRejectException(reason: String? = null, json: String? = null)
actual fun JSRejectException(reason: String?, json: String?)
actual fun JSRejectException(reason: String?, json: String?)

Functions

Link copied to clipboard
fun addSuppressed(p0: Throwable)
Link copied to clipboard
open fun fillInStackTrace(): Throwable
Link copied to clipboard
open fun getLocalizedMessage(): String
getStackTrace
Link copied to clipboard
open fun getStackTrace(): Array<StackTraceElement>
fun getStackTrace(): Array<String>
Link copied to clipboard
fun getSuppressed(): Array<Throwable>
Link copied to clipboard
open fun initCause(p0: Throwable): Throwable
printStackTrace
Link copied to clipboard
open fun printStackTrace()
open fun printStackTrace(p0: PrintStream)
open fun printStackTrace(p0: PrintWriter)
fun printStackTrace()
Link copied to clipboard
open fun setStackTrace(p0: Array<StackTraceElement>)
Link copied to clipboard
open override fun toString(): String

Properties

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