package cn.edu.ecnu.stu.bookstore.component;

import lombok.AllArgsConstructor;

@AllArgsConstructor
public class AppException extends RuntimeException{

    private String code;

    private String message;

    public void setCode(String code) {
        this.code = code;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
