All Downloads are FREE. Search and download functionalities are using the official Maven repository.

liquibase.command.AbstractCommand Maven / Gradle / Ivy

There is a newer version: 4.30.0
Show newest version
package liquibase.command;

public abstract class AbstractCommand implements LiquibaseCommand {

    public final Object execute() throws CommandExecutionException {
        this.validate();
        try {
            return this.run();
        } catch (Exception e) {
            if (e instanceof CommandExecutionException) {
                throw (CommandExecutionException) e;
            } else {
                throw new CommandExecutionException(e);
            }
        }
    }

    protected abstract Object run() throws Exception;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy