# kernelv_get_error_severity()

## Prototype

signed short int

kernelv_get_error_severity(void);

## Description

Returns the error remedy class of an error message previously read by kernelv_read_error(). If no error message was read or there is no current error message, the value -1 is returned.

## Parameter

-

## Return values

Type: signed short int

-1 if there is no current error message; otherwise the error remedy class (see also [DIAG]).

Error remedy class | Internal error remedy
0 | Error message acts as warning; this causes automatically an internal error remedy.
2 | Requires complete reset of the NC channel.
5 | Requires complete reset of the NC channel.
6 | Requires restart of the CNC channel.
7 | Requires restart of the entire NC kernel after switch-off.