You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
537 B
31 lines
537 B
4 years ago
|
package com.fr.env.handler;
|
||
|
|
||
|
/**
|
||
|
* @author hades
|
||
|
* @version 10.0
|
||
|
* Created by hades on 2021/8/5
|
||
|
*/
|
||
|
public class ResultWrapper {
|
||
|
|
||
|
private final boolean next;
|
||
|
|
||
|
private final Throwable throwable;
|
||
|
|
||
|
public ResultWrapper(Throwable throwable) {
|
||
|
this(true, throwable);
|
||
|
}
|
||
|
|
||
|
public ResultWrapper(boolean next, Throwable e) {
|
||
|
this.next = next;
|
||
|
this.throwable = e;
|
||
|
}
|
||
|
|
||
|
public boolean isNext() {
|
||
|
return next;
|
||
|
}
|
||
|
|
||
|
public Throwable getThrowable() {
|
||
|
return throwable;
|
||
|
}
|
||
|
}
|