com.cloud.platform.web.utils.GlobalExceptionUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloud-web-spring-boot-starter Show documentation
Show all versions of cloud-web-spring-boot-starter Show documentation
project for cloud-web-spring-boot-starter
The newest version!
package com.cloud.platform.web.utils;
import com.auth0.jwt.exceptions.JWTVerificationException;
import com.cloud.platform.common.exception.BaseException;
import com.cloud.platform.common.domain.response.BaseResponse;
import com.cloud.platform.common.enums.BaseErrorCodeEnum;
import com.fasterxml.jackson.core.JsonProcessingException;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.exception.ExceptionUtils;
import org.slf4j.MDC;
import org.springframework.core.convert.ConversionFailedException;
import org.springframework.validation.BindException;
import org.springframework.validation.BindingResult;
import org.springframework.validation.FieldError;
import org.springframework.web.bind.MethodArgumentNotValidException;
import javax.validation.ConstraintViolation;
import javax.validation.ConstraintViolationException;
import java.util.*;
/**
* @description:
* @author: zhou shuai
* @date: 2022/3/29 20:09
* @version: v1
*/
@Slf4j
public class GlobalExceptionUtils {
public GlobalExceptionUtils() {
}
public static BaseResponse
© 2015 - 2024 Weber Informatics LLC | Privacy Policy