-
Notifications
You must be signed in to change notification settings - Fork 0
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
6 changed files
with
124 additions
and
11 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
9 changes: 9 additions & 0 deletions
9
src/main/java/com/wse/qanaryexplanationservice/exceptions/ExplanationException.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,9 @@ | ||
package com.wse.qanaryexplanationservice.exceptions; | ||
|
||
public class ExplanationException extends Exception { | ||
|
||
|
||
public ExplanationException(String message) { | ||
super(message); | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/main/java/com/wse/qanaryexplanationservice/exceptions/ExplanationExceptionComponent.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,7 @@ | ||
package com.wse.qanaryexplanationservice.exceptions; | ||
|
||
public class ExplanationExceptionComponent extends ExplanationException { | ||
public ExplanationExceptionComponent() { | ||
super("Error code 1"); // | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/main/java/com/wse/qanaryexplanationservice/exceptions/ExplanationExceptionPipeline.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,7 @@ | ||
package com.wse.qanaryexplanationservice.exceptions; | ||
|
||
public class ExplanationExceptionPipeline extends ExplanationException { | ||
public ExplanationExceptionPipeline() { | ||
super("Error code 2"); // Pipeline explanation creation error | ||
} | ||
} |
57 changes: 57 additions & 0 deletions
57
src/main/java/com/wse/qanaryexplanationservice/helper/dtos/QanaryExplanationData.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,57 @@ | ||
package com.wse.qanaryexplanationservice.helper.dtos; | ||
|
||
import java.util.List; | ||
|
||
public class QanaryExplanationData { | ||
|
||
private String graph; | ||
private String questionId; | ||
private String component; | ||
private String serverHost; | ||
private List<String> explanations; | ||
|
||
public QanaryExplanationData() { | ||
|
||
} | ||
|
||
public List<String> getExplanations() { | ||
return explanations; | ||
} | ||
|
||
public void setExplanations(List<String> explanations) { | ||
this.explanations = explanations; | ||
} | ||
|
||
public String getComponent() { | ||
return component; | ||
} | ||
|
||
public String getGraph() { | ||
return graph; | ||
} | ||
|
||
public String getQuestionId() { | ||
return questionId; | ||
} | ||
|
||
public void setQuestionId(String questionId) { | ||
this.questionId = questionId; | ||
} | ||
|
||
public void setComponent(String component) { | ||
this.component = component; | ||
} | ||
|
||
public void setGraph(String graph) { | ||
this.graph = graph; | ||
} | ||
|
||
public String getServerHost() { | ||
return serverHost; | ||
} | ||
|
||
public void setServerHost(String serverHost) { | ||
this.serverHost = serverHost; | ||
} | ||
|
||
} |
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