Class SchemaMigrationException
Thrown when one or more entities fail during schema migration. Old segments remain untouched — the user can fix the migration function and re-run.
public class SchemaMigrationException : TyphonException, ISerializable
- Inheritance
-
SchemaMigrationException
- Implements
- Inherited Members
Constructors
SchemaMigrationException(string, IReadOnlyList<MigrationFailure>)
Creates a new SchemaMigrationException aggregating the entities that failed migration.
public SchemaMigrationException(string componentName, IReadOnlyList<MigrationFailure> failures)
Parameters
componentNamestringName of the component schema being migrated.
failuresIReadOnlyList<MigrationFailure>One record per entity that could not be migrated.
Properties
ComponentName
The component schema name being migrated.
public string ComponentName { get; }
Property Value
FailedEntityCount
Total number of entities that failed migration.
public int FailedEntityCount { get; }
Property Value
Failures
Detailed failure records for each entity.
public IReadOnlyList<MigrationFailure> Failures { get; }