-
Notifications
You must be signed in to change notification settings - Fork 12
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
1 parent
ff215f0
commit 74d50b0
Showing
8 changed files
with
458 additions
and
305 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
.../src/main/java/io/littlehorse/common/model/getable/core/noderun/NodeFailureException.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,25 @@ | ||
package io.littlehorse.common.model.getable.core.noderun; | ||
|
||
import io.littlehorse.common.model.getable.core.wfrun.failure.FailureModel; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
/** | ||
* This class is thrown by the NodeRunModel class when trying to advance. It wraps the | ||
* FailureModel class, and is handled by the ThreadRunModel. We are doing this to remove | ||
* the ThreadRunModel#fail() method, since the NodeRunModel should not | ||
*/ | ||
@Getter | ||
@AllArgsConstructor | ||
public class NodeFailureException extends Exception { | ||
|
||
/** | ||
* The LittleHorse Workflow Failure that was thrown. | ||
*/ | ||
private FailureModel failure; | ||
|
||
@Override | ||
public String getMessage() { | ||
return failure.getMessage(); | ||
} | ||
} |
Oops, something went wrong.