Up

Error

This section provides a basic language error API (e.g. for the Scol language functions only, not for the Scol application errors). It is similar to 'errno', by example.
Only the last stored error can be returned.

If the log is activated and according to the log level, a message is automatically written in the current log file.

EOK is provided if no error is encountered.

Note :

At this time, all functions are not supported yet. See each function documentation to know these error codes.

Example :

fun returnError ()=
	_showconsole;
	if EOK != _errGetLast then
		_fooS sprintf "code : %d  fun : %s  line : %d  file : %s" _errGetLastEx
	else
		_fooS "This is a success !";
	0;;