-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
69 additions
and
3 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
maestro-common/src/main/java/com/netflix/maestro/exceptions/MaestroDatabaseError.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,21 @@ | ||
package com.netflix.maestro.exceptions; | ||
|
||
import com.netflix.maestro.models.error.Details; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
public class MaestroDatabaseError extends MaestroRuntimeException { | ||
private static final long serialVersionUID = 7334668492533395123L; | ||
|
||
private final Details details; | ||
|
||
/** | ||
* Constructor with error message and details. | ||
* | ||
* @param cause cause exception | ||
*/ | ||
public MaestroDatabaseError(Throwable cause, String msg) { | ||
super(Code.INTERNAL_ERROR, msg, cause); | ||
this.details = Details.create(cause, false, msg); | ||
} | ||
} |
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,12 @@ | ||
# This is a Gradle generated file for dependency locking. | ||
# Manual edits can break the build and are not advised. | ||
# This file is expected to be part of source control. | ||
com.fasterxml.jackson.core:jackson-annotations:2.15.4=compileClasspath | ||
com.fasterxml.jackson.core:jackson-core:2.15.4=compileClasspath | ||
com.fasterxml.jackson.core:jackson-databind:2.15.4=compileClasspath | ||
com.fasterxml.jackson:jackson-bom:2.15.4=compileClasspath | ||
com.zaxxer:HikariCP:4.0.3=compileClasspath | ||
org.flywaydb:flyway-core:7.6.0=compileClasspath | ||
org.projectlombok:lombok:1.18.36=annotationProcessor,compileClasspath | ||
org.slf4j:slf4j-api:1.7.30=compileClasspath | ||
empty= |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# This is a Gradle generated file for dependency locking. | ||
# Manual edits can break the build and are not advised. | ||
# This file is expected to be part of source control. | ||
com.fasterxml.jackson.core:jackson-annotations:2.18.2=compileClasspath | ||
com.fasterxml.jackson.core:jackson-core:2.18.2=compileClasspath | ||
com.fasterxml.jackson.core:jackson-databind:2.15.4=compileClasspath | ||
com.fasterxml.jackson:jackson-bom:2.18.2=compileClasspath | ||
com.zaxxer:HikariCP:4.0.3=compileClasspath | ||
org.flywaydb:flyway-core:7.6.0=compileClasspath | ||
org.projectlombok:lombok:1.18.36=annotationProcessor,compileClasspath | ||
org.slf4j:slf4j-api:1.7.30=compileClasspath | ||
empty= |
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