com.pongsky.kit.exception.RemoteCallException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of config-core Show documentation
Show all versions of config-core Show documentation
Java 增强套件 之 config-core 模块
package com.pongsky.kit.exception;
import com.pongsky.kit.response.GlobalResult;
import feign.FeignException;
import org.springframework.http.HttpStatus;
/**
* 远程调用异常
*
* @author pengsenhao
*/
public class RemoteCallException extends FeignException {
private static final long serialVersionUID = 7642014467846068866L;
private final GlobalResult> result;
public GlobalResult> getResult() {
return result;
}
public RemoteCallException(GlobalResult> result) {
super(HttpStatus.OK.value(), result.getMessage());
this.result = result;
}
}