Class InvalidAccessException
Thrown when a system attempts to mutate a component or resource that it did not declare in its access set (RFC 07 — Unit 4). DEBUG builds only; Typhon.Engine.Internals.SystemAccessValidator compiles out in RELEASE.
public sealed class InvalidAccessException : TyphonException, ISerializable
- Inheritance
-
InvalidAccessException
- Implements
- Inherited Members
Remarks
Indicates declaration drift: the system body's actual writes diverged from what was registered via Writes<T>() / SideWrites<T>(). Fix by adding the missing declaration.
Constructors
InvalidAccessException(string, Type, string)
Creates a new InvalidAccessException for a system that wrote an undeclared component.
public InvalidAccessException(string systemName, Type undeclaredType, string declaredSummary)
Parameters
systemNamestringName of the offending system.
undeclaredTypeTypeThe component type that was written without being declared.
declaredSummarystringHuman-readable summary of the access set the system actually declared.
Properties
SystemName
Name of the system that performed the undeclared write.
public string SystemName { get; }
Property Value
UndeclaredType
The component type the system wrote without declaring it in its access set.
public Type UndeclaredType { get; }