pub fn new_error(message: &str) -> KExpand description
Constructor of q error. The input must be null-terminated.
ยงExample
use kdbplus::api::*;
pub extern "C" fn thai_kick(_: K) -> K{
new_error("Thai kick unconditionally!!\0")
}q)monstrous: `libapi_examples 2: (`thai_kick; 1);
q)monstrous[]
'Thai kick unconditionally!!
[0] monstrous[]
^