public AgentAlreadyExistsException(Agent agent, Agent otheragent)
     : base("Attempted to add agent of type " + agent.GetType().Name + ", but another agent of type "+otheragent.GetType().Name+". Already has the name: "+agent.Name)
 {
     this.agent = agent;
     this.otheragent = otheragent;
     this.name = agent.Name;
 }
 public AgentHasNoNameException(Agent agent)
     : base("Attempted to add agent of type " + agent.GetType().Name + ", without a name")
 {
     this.agent = agent;
 }