PyInitializeMigrationHookResult
class PyInitializeMigrationHookResult(initialize_migration_hook_result)
Bases: PyResult
IInitializeMigrationHook.
- Parameters: initialize_migration_hook_result (IInitializeMigrationHookResult)
__init__(initialize_migration_hook_result)
Creates a new PyInitializeMigrationHookResult object.
Args: : initialize_migration_hook_result: A IInitializeMigrationHookResult object.
Returns: None.
- Parameters: initialize_migration_hook_result (IInitializeMigrationHookResult)
- Return type: None
Methods
__init__ (initialize_migration_hook_result) |
Creates a new PyInitializeMigrationHookResult object. |
---|---|
to_failure ([errors]) |
Creates a new IInitializeMigrationHookResult object with the given errors. |
Attributes
errors |
Gets any exceptions encountered during the operation. |
---|---|
scoped_services |
Gets the migration-scoped service provider. |
success |
Gets whether the operation was successful. |
property errors : Sequence[Exception]
Gets any exceptions encountered during the operation.
property scoped_services : ScopedMigrationServices
Gets the migration-scoped service provider.
property success : bool
Gets whether the operation was successful.
to_failure(errors=None)
Creates a new IInitializeMigrationHookResult object with the given errors.
Args: : errors: The errors that caused the failure.
Returns: The new IInitializeMigrationHookResult object.
- Parameters: errors (Sequence *[*Exception ])
- Return type: Self