예제 #1
0
 /// <summary>
 /// Given the error, this will attempt to format it and save it into the database.
 /// </summary>
 /// <param name="pvsComputerName">The name of the computer where the error happened.</param>
 /// <param name="pvExceptionText">The actual exception that happened.</param>
 /// <param name="pvsLocation">The location of the error.</param>
 /// <param name="pvsAddInfo">Any additional info to be added to the record.</param>
 public void ProcessError(string pvsComputerName, string pvExceptionText, string pvsLocation, string pvsAddInfo)
 {
     try
     {
         string        lsErrorText = pvExceptionText;
         ErrorAtServer lobjError   = new ErrorAtServer();
         lobjError.HandleError("Client Error", pvExceptionText, pvsLocation, pvsAddInfo, pvsComputerName);
     }
     catch
     {
         // Can't really do anything because if we can't connect to the home server, then we're screwed.
     }
 }