tech.veedo.ragdoll.exception.ExceptionAdviceEntity Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ragdoll-global-advice Show documentation
Show all versions of ragdoll-global-advice Show documentation
springboot plugins to process return advise and exception
package tech.veedo.ragdoll.exception;
import lombok.Data;
import lombok.experimental.Accessors;
@Data
@Accessors(chain = true)
public class ExceptionAdviceEntity {
/**
* 状态码
*/
private Integer statusCode = 300;
/**
* 响应状态码
*/
private boolean success = false;
/**
* 响应信息
*/
private String message = "调用接口异常";
/**
* 或有,错误时返回给前台的数据
*/
private Object data;
}