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