Skip to content

Commit

Permalink
fix: restore public method in PreconditionFailedException (liquibase#…
Browse files Browse the repository at this point in the history
  • Loading branch information
filipelautert authored Oct 16, 2024
1 parent 4d6be82 commit dd7d324
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ public PreconditionFailedException(String message, DatabaseChangeLog changeLog,
this(new FailedPrecondition(message, changeLog, precondition), cause);
}

/**
* @deprecated Use {@link #PreconditionFailedException(FailedPrecondition, Throwable)} instead
*/
@Deprecated
public PreconditionFailedException(FailedPrecondition failedPrecondition) {
super("Preconditions Failed");
this.failedPreconditions = new ArrayList<>();
failedPreconditions.add(failedPrecondition);
}

public PreconditionFailedException(FailedPrecondition failedPrecondition, Throwable cause) {
super("Preconditions Failed", cause);
this.failedPreconditions = new ArrayList<>();
Expand Down

0 comments on commit dd7d324

Please sign in to comment.