' If we had an error If Not oServer.GetLastError() Is Nothing Then loError = oServer.GetLastError().GetBaseException() lcError = Trim(loError.Message) + "1" lcStackTrace = loError.StackTrace ' If we have an exception If Not loError.InnerException Is Nothing Then lcError = lcError + "2" 'lcError = lcError + oApp.GetInnerException(loError.InnerException) End If End IfFrom my application, I have forced an error like this:
Try loRow = loData.oRows(0) Catch ex As Exception Throw New Exception("Ok, here is the exception", ex.InnerException) End TrySo, the first one is an "Object reference not found".