Vixen
02b45cc4

EntityNotFoundException

class Core/Vixen.Ecs/EcsExceptions.cs:17
csharp
public sealed class EntityNotFoundException

An entity handle no longer names a live entity — it was destroyed, or it came from another world.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

This is the payoff for versioning the handle. Without it the slot has been reused and the call quietly reads or writes whatever entity occupies it now, which is a bug that reproduces once a week and looks like corruption.

Fields and properties (1)

  • public Entity Entity

    The handle that was used.

Methods (4)

  • public EntityNotFoundException(Entity entity, string reason)

    Creates the exception.

  • public EntityNotFoundException(string message)

    Creates the exception with a plain message.

  • public EntityNotFoundException(string message, Exception innerException)

    Creates the exception with a message and a cause.

  • public EntityNotFoundException()

    Creates the exception with no message.

Used by (4)

  • BehaviorStoreVixen.Engine
  • CommandBufferTestsVixen.Ecs.Tests
  • WorldVixen.Ecs
  • WorldTestsVixen.Ecs.Tests