Table of Contents

Class SchemaMigrationException

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

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

componentName string

Name of the component schema being migrated.

failures IReadOnlyList<MigrationFailure>

One record per entity that could not be migrated.

Properties

ComponentName

The component schema name being migrated.

public string ComponentName { get; }

Property Value

string

FailedEntityCount

Total number of entities that failed migration.

public int FailedEntityCount { get; }

Property Value

int

Failures

Detailed failure records for each entity.

public IReadOnlyList<MigrationFailure> Failures { get; }

Property Value

IReadOnlyList<MigrationFailure>