-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Wesley Willard <wwillard@datical.com> Co-authored-by: Nathan Voxland <nathan@voxland.net> Co-authored-by: Wesley willard <wwillard@austin.rr.com> Co-authored-by: Surya Aki <saki@datical.com> Co-authored-by: suryaaki2 <80348493+suryaaki2@users.noreply.github.com> Co-authored-by: Wesley Willard <wwillard@liquibase.com>
- Loading branch information
1 parent
6cdea2e
commit 0bb2eae
Showing
12 changed files
with
300 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
liquibase-core/src/main/java/liquibase/exception/ChangeLogAlreadyRegisteredException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package liquibase.exception; | ||
|
||
import liquibase.hub.model.HubChangeLog; | ||
|
||
/** | ||
* Exception class indicating that a particular changelog has already been registered with Hub. | ||
*/ | ||
public class ChangeLogAlreadyRegisteredException extends Exception { | ||
|
||
/** | ||
* If present, the changelog metadata from Hub. If null, it can be assumed that the changelog has been registered | ||
* with some organization which the current API key cannot access. | ||
*/ | ||
private final HubChangeLog hubChangeLog; | ||
|
||
public ChangeLogAlreadyRegisteredException() { | ||
this(null); | ||
} | ||
|
||
public ChangeLogAlreadyRegisteredException(HubChangeLog hubChangeLog) { | ||
this.hubChangeLog = hubChangeLog; | ||
} | ||
|
||
public HubChangeLog getHubChangeLog() { | ||
return hubChangeLog; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.