-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TSK-81: correced some ClassificationService Methods, Tests and need u…
…nique ID for task-join. +Structure fix for CreateClassification (root domain)
- Loading branch information
1 parent
193e3c3
commit 5f64242
Showing
17 changed files
with
460 additions
and
261 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
12 changes: 7 additions & 5 deletions
12
...askana-core/src/main/java/pro/taskana/exceptions/ClassificationAlreadyExistException.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 |
---|---|---|
@@ -1,14 +1,16 @@ | ||
package pro.taskana.exceptions; | ||
|
||
import pro.taskana.Classification; | ||
|
||
/** | ||
* Thrown, when a classification does already exits, | ||
* but wanted to create with same ID+domain. | ||
* Thrown, when a classification does already exits, but wanted to create with same ID+domain. | ||
*/ | ||
public class ClassificationAlreadyExistException extends NotFoundException { | ||
public class ClassificationAlreadyExistException extends TaskanaException { | ||
|
||
private static final long serialVersionUID = 4716611657569005013L; | ||
|
||
public ClassificationAlreadyExistException(String classificationId) { | ||
super(classificationId); | ||
public ClassificationAlreadyExistException(Classification classification) { | ||
super("ID='" + classification.getId() + "', KEY=' " + classification.getKey() + "', DOMAIN='" | ||
+ classification.getDomain() + "';"); | ||
} | ||
} |
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.