package com.erp.product.exception;

import lombok.Getter;

/**
 * 商品业务异常
 */
@Getter
public class GoodsException extends RuntimeException {
    
    private final int code;
    
    public GoodsException(String message) {
        super(message);
        this.code = 500;
    }
    
    public GoodsException(int code, String message) {
        super(message);
        this.code = code;
    }
    
    public GoodsException(String message, Throwable cause) {
        super(message, cause);
        this.code = 500;
    }
}
