package com.xly.erp.common.exception; import lombok.Getter; /** * 业务异常 — 由 service 层抛出,由 GlobalExceptionHandler 统一转 Result.fail。 * docs/04 § 1.4。 */ @Getter public class BizException extends RuntimeException { private final int code; public BizException(int code, String message) { super(message); this.code = code; } public BizException(int code, String message, Throwable cause) { super(message, cause); this.code = code; } }