Skip to content

Commit 24c89d4

Browse files
committed
feat: RetryableException 添加构造方法
1 parent 87d39e6 commit 24c89d4

1 file changed

Lines changed: 24 additions & 1 deletion

File tree

framework/src/main/java/com/github/cadecode/uniboot/framework/exception/RetryableException.java

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,30 @@ public class RetryableException extends RuntimeException {
1414
/**
1515
* 用于传递重试中的状态信息
1616
*/
17-
private final Object state;
17+
private Object state;
18+
19+
public RetryableException() {
20+
}
21+
22+
public RetryableException(String message) {
23+
super(message);
24+
}
25+
26+
public RetryableException(String message, Throwable cause) {
27+
super(message, cause);
28+
}
29+
30+
public RetryableException(Throwable cause) {
31+
super(cause);
32+
}
33+
34+
public RetryableException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
35+
super(message, cause, enableSuppression, writableStackTrace);
36+
}
37+
38+
public RetryableException(Object state) {
39+
this.state = state;
40+
}
1841

1942
public RetryableException(String message, Object state) {
2043
super(message);

0 commit comments

Comments
 (0)