package com.sonic.common.rpc.exception;

import lombok.Getter;

/**
 *  协议层错误. 比如http调用4XX, 5XX
 * @author code
 */
@Getter
public class RpcProtocolException extends RuntimeException {

    private Integer code;

    private Object response;

    public RpcProtocolException(Integer code, Object response, String message) {
        super(message);
        this.code = code;
        this.response = response;
    }
}
