/**
 * 业务异常。
 *
 * <p>用于在业务流程中主动抛出可预期的错误，并携带业务错误码。</p>
 */
package com.hertz.common.exception;

public class BusinessException extends RuntimeException {
  private final int code;

  public BusinessException(int code, String message) {
    super(message);
    this.code = code;
  }

  public int getCode() {
    return code;
  }
}

