[core] fix ExceptionCode assertion message