unwrap

fun CPointer<CPointerVar<GError>>.unwrap(throwException: Boolean = true, extraMapping: Map<UInt, (CPointer<GError>) -> KGError> = mapOf()): Exception?

kotlinx-gtk 08 / 04 / 2021

Parameters

throwException

Default true, When true throws an exception, otherwise returns the exception

extraMapping

Allows extra types of KGError to be created, for more specific kotlin exception catching