예제 #1
0
 private static void TryFindGroup(ParsedMessage parsed, String groupId, IDBController controller)
 {
     try
     {
         parsed.Group = controller.RetrieveGroup(groupId);
     }
     catch (Exception ex)
     {
         if (ex is ArgumentNullException ||
             ex is CouldNotFindException)
         {
             parsed.Group = null;
         }
         else
         {
             // Not an exception we deal with, throw so we don't hide bugs
             throw;
         }
     }
 }