# Error messages caused by NC programs

With error messages caused by an NC program, it is possible to request additional information about the NC program in which the error occurred. This information can then be used to localise the error in the NC program.

A check is first made whether the NC program contains specific information by calling the function kernelv_is_program_err(). If this function returns the value 1, the current error message was caused by an NC program and further information about the error in the NC program can be called by calling the functions below.

## Additional information

- kernelv_error_is_program_error()
- kernelv_program_error_get_path
- kernelv_program_error_get_program_name
- kernelv_program_error_get_file_name
- kernelv_program_error_get_fileoffset
- kernelv_program_error_get_lineoffset
- kernelv_program_error_get_tokenoffet
- kernelv_program_error_get_linenumber