01: package liquibase.preconditions;
02:
03: import liquibase.DatabaseChangeLog;
04:
05: public class FailedPrecondition {
06: private String message;
07: private Precondition precondition;
08: private DatabaseChangeLog changeLog;
09:
10: public FailedPrecondition(String message,
11: DatabaseChangeLog changeLog, Precondition precondition) {
12: this .message = message;
13: this .changeLog = changeLog;
14: this .precondition = precondition;
15: }
16:
17: public String getMessage() {
18: return message;
19: }
20:
21: public Precondition getPrecondition() {
22: return precondition;
23: }
24:
25: public String toString() {
26: return changeLog.toString() + " : " + message;
27: }
28: }
|