Example #1
0
 public static void LogError(UUID id, string error)
 {
     lock (Errors)
     {
         //var id = o.ID;
         ErrorInfo err;
         if (!Errors.TryGetValue(id, out err))
         {
             err = Errors[id] = new ErrorInfo(id) {};
         }
         err.Add(error);
         Exporting.Failure(error);
     }
 }
Example #2
0
 public static void LogError(SimObject o, string error)
 {
     lock(Errors)
     {
         var id = o.ID;
         ErrorInfo err;
         if (!Errors.TryGetValue(o.ID, out err))
         {
             err = Errors[id] = new ErrorInfo(id) {Obj = o};
         }
         err.Add(error);
         Exporting.Failure(error);
     }
 }