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

liquibase.exception.UnexpectedLiquibaseException Maven / Gradle / Ivy

The newest version!
package liquibase.exception;

import lombok.Getter;

/**
 * Marks an internal error (runtime exception) that prevents this software from further processing. Should
 * only be thrown in "impossible" cases where the software suspects a bug in itself.
 */
@Getter
public class UnexpectedLiquibaseException extends RuntimeException implements ExitCodeException {
    private static final long serialVersionUID = 1570124571347160550L;
    private Integer exitCode = null;
    
    /**
     * Constructs a new {@link UnexpectedLiquibaseException} with the given message
     * @param message a message describing what should never have happened
     */
    public UnexpectedLiquibaseException(String message) {
        super(message);
    }

    /**
     * Constructs a new {@link UnexpectedLiquibaseException} with the given message
     * and adds information about the {@link Throwable} cause of the problem.
     * @param message a message describing what should never have happened
     * @param cause The {@link Throwable} event that should never have happened
     */
    public UnexpectedLiquibaseException(String message, Throwable cause) {
        super(message, cause);
    }

    /**
     * Constructs a new {@link UnexpectedLiquibaseException} from a
     * {@link Throwable} event.
     * @param cause The {@link Throwable} event that should never have happened
     */
    public UnexpectedLiquibaseException(Throwable cause) {
        super(cause);
    }

    /**
     * Constructs a new {@link UnexpectedLiquibaseException} from a
     * {@link Throwable} event.
     * @param cause The {@link Throwable} event that should never have happened
     */
    public UnexpectedLiquibaseException(Throwable cause, int exitCode) {
        super(cause);
        this.exitCode = exitCode;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy