Singlestore Database can we write Cursor with exception handling of EXCEPTION WHEN ER_INTO_VARIABLES_NO_ROWS THEN

Can we get a example with cursor procedure with EXCEPTION:
qry QUERY(id_curs text)=select distinct EMP_ID from EMP_DETAILS;
BEGIN
EXCEPTION
WHEN ER_INTO_VARIABLES_NO_ROWS THEN in cursor procedure.
Because i am unable to write in singlestore and its throwing unhandled errors.
please help me to get this.

See if this helps: