![JAR search and dependency download from the Maven repository](/logo.png)
br.com.jhonsapp.bootstrap.authentication.exceptionhandler.CloudSystemExceptionHandler Maven / Gradle / Ivy
package br.com.jhonsapp.bootstrap.authentication.exceptionhandler;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.MessageSource;
import org.springframework.context.i18n.LocaleContextHolder;
import org.springframework.dao.EmptyResultDataAccessException;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.http.converter.HttpMessageNotReadableException;
import org.springframework.validation.BindingResult;
import org.springframework.validation.FieldError;
import org.springframework.web.bind.MethodArgumentNotValidException;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.context.request.WebRequest;
import org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler;
import br.com.jhonsapp.bootstrap.user.exception.BusinessException;
@ControllerAdvice
public class CloudSystemExceptionHandler extends ResponseEntityExceptionHandler {
@Autowired
private MessageSource messageSource;
@Override
protected ResponseEntity
© 2015 - 2025 Weber Informatics LLC | Privacy Policy