Entitas  0.40.0
Entitas is a super fast Entity Component System (ECS) Framework specifically made for C# and Unity
GroupSingleEntityException.cs
1 using System.Linq;
2 
3 namespace Entitas {
4 
5  public class GroupSingleEntityException<TEntity> : EntitasException where TEntity : class, IEntity, new() {
6 
8  : base("Cannot get the single entity from " + group +
9  "!\nGroup contains " + group.count + " entities:",
10  string.Join("\n", group.GetEntities().Select(e => e.ToString()).ToArray())) {
11  }
12  }
13 }
Base exception used by Entitas.