package com.red.circle.common.business.core.exception;

import lombok.AccessLevel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.RequiredArgsConstructor;
import lombok.experimental.FieldDefaults;

/**
 * @author pengliang on 2019/8/27 18:10
 */
@Deprecated
@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
@EqualsAndHashCode(callSuper = true)
@RequiredArgsConstructor
public class ApiException extends RuntimeException {

  /**
   * 错误状态码`
   */
  final Integer errorCode;

  /**
   * 错误消息
   */
  final String errorMsg;

}
