Mirror of Svelto.ECS because we're a fan of it
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
736B

  1. using System;
  2. namespace Svelto.ECS
  3. {
  4. public class ECSException : Exception
  5. {
  6. public ECSException(string message):base("<color=red>".FastConcat(message, "</color>"))
  7. {}
  8. public ECSException(string message, Exception innerE):base("<color=red>".FastConcat(message, "</color>"), innerE)
  9. {}
  10. public ECSException(string message, Type entityComponentType, Type type) :
  11. base(message.FastConcat(" entity view: '", entityComponentType.Name, "', field: '", type.Name))
  12. {
  13. }
  14. public ECSException(string message, Type entityComponentType) :
  15. base(message.FastConcat(" entity view: ", entityComponentType.Name))
  16. {
  17. }
  18. }
  19. }