public void Add(WsScanRule rule) { try { this.List.Add(rule); } catch(System.Exception e) { throw new WsException("Invalid rule passed in.", e); } }
public void Remove(WsScanRule rule) { try { this.List.Remove(rule); } catch(System.Exception e) { throw new WsException("Cannot remove a nonexistent rule.", e); } }