Table of Contents

Class InvalidAccessException

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

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

systemName string

Name of the offending system.

undeclaredType Type

The component type that was written without being declared.

declaredSummary string

Human-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

string

UndeclaredType

The component type the system wrote without declaring it in its access set.

public Type UndeclaredType { get; }

Property Value

Type