Interface ErrorHandler


  • @Deprecated
    public interface ErrorHandler
    Deprecated.
    ErrorHandlers have been deprecated and will be removed in Flyway 6.0 use statement-level callbacks instead.
    Handler for warnings and errors that occur during a migration. This can be used to customize Flyway's behavior by for example throwing another runtime exception, outputting a warning or suppressing the error instead of throwing a FlywayException.

    Flyway Pro and Flyway Enterprise only

    • Method Detail

      • handle

        boolean handle​(Context context)
        Deprecated.
        Handles warnings and errors that occurred during a migration.
        Parameters:
        context - The context.
        Returns:
        true if they were handled, false if they weren't and Flyway should fall back to its default handling.