Class ArchetypeSchemaException
Thrown when an archetype's persisted schema (its ArchetypeR1 row) cannot be opened under the runtime declaration. Every refusal is raised before any byte of the archetype moves.
public sealed class ArchetypeSchemaException : InvalidOperationException, ISerializable
- Inheritance
-
ArchetypeSchemaException
- Implements
- Inherited Members
Remarks
Derives from InvalidOperationException, which is what a schema refusal at InitializeArchetypes has always thrown, so existing
handlers keep catching it. See claude/design/Schema/07-archetype-set-evolution.md §8 for each kind.
Constructors
ArchetypeSchemaException(string, ArchetypeSchemaErrorKind, string)
Creates the exception.
public ArchetypeSchemaException(string archetypeName, ArchetypeSchemaErrorKind kind, string message)
Parameters
archetypeNamestringDurable name of the archetype concerned.
kindArchetypeSchemaErrorKindWhich rule refused the open.
messagestringThe full, user-facing message.
Properties
ArchetypeName
The durable name of the archetype (or, for UnopenedHolder, of the unopened holder).
public string ArchetypeName { get; }
Property Value
Kind
Which rule refused the open.
public ArchetypeSchemaErrorKind Kind { get; }