All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pongsky.kit.exception.RemoteCallException Maven / Gradle / Ivy

There is a newer version: 3.10.1-2.4.13
Show newest version
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;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy