NativeFailureException

class NativeFailureException(val nativeCode: Int = NativeErrorCode.NATIVE_FAILURE.code, message: String, cause: Throwable? = null) : InferenceException(source)

An unexpected native failure (including C++ exceptions caught at the FFI boundary).

Constructors

Link copied to clipboard
constructor(nativeCode: Int = NativeErrorCode.NATIVE_FAILURE.code, message: String, cause: Throwable? = null)

Properties

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

the native error category this exception represents.

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

the raw native result code, which may be outside NativeErrorCode's known values.