In the procedure while performing exception handling we need to capture the information that has been returned by the SHOW ERRORS command @the runtime.
Show errors results : LEVEL, CODE and MESSAGE.
Appreciate if I get a way to get the above info in the procedure and insert into our error log table.
I can get the ECHO SELECT @@ERROR_COUNT but not the abovee 3 details.