Skip to content

Commit

Permalink
progress
Browse files Browse the repository at this point in the history
  • Loading branch information
coltmcnealy-lh committed Feb 18, 2024
1 parent ff215f0 commit 74d50b0
Show file tree
Hide file tree
Showing 8 changed files with 458 additions and 305 deletions.
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();
}
}
Loading

0 comments on commit 74d50b0

Please sign in to comment.