error
inline fun error(msg: String, cause: Throwable? = null, errno: Int? = null, vararg extraProps: Pair<String, Any>): Nothing
Manufacture a generic JavaScript error with the provided msg and optional cause.
Return
Constructed JS exception type.
Parameters
msg
Message to enclose for the error.
cause
Caught error to wrap, if any.