we are using document Id from exception in here - to show the document Id in server-side errors