io.mosip.pms.exception.PartnerServiceResponseExceptionHandler Maven / Gradle / Ivy
The newest version!
package io.mosip.pms.exception;
import java.io.IOException;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.validation.FieldError;
import org.springframework.web.bind.MethodArgumentNotValidException;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;
import org.springframework.web.context.request.WebRequest;
import org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler;
import org.springframework.web.util.ContentCachingRequestWrapper;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.mosip.kernel.core.authmanager.exception.AuthZException;
import io.mosip.kernel.core.exception.ServiceError;
import io.mosip.pms.common.exception.ApiAccessibleException;
import io.mosip.pms.common.exception.ValidationException;
import io.mosip.pms.common.request.dto.ErrorResponse;
import io.mosip.pms.common.response.dto.ResponseWrapper;
import io.mosip.pms.common.response.dto.ValidateResponseWrapper;
import io.mosip.pms.device.exception.DeviceServiceException;
import io.mosip.pms.device.exception.DeviceValidationException;
import io.mosip.pms.partner.constant.ErrorCode;
import io.mosip.pms.partner.exception.PartnerServiceException;
import io.mosip.pms.partner.manager.exception.PartnerManagerServiceException;
import io.mosip.pms.partner.misp.exception.MISPServiceException;
@RestControllerAdvice
public class PartnerServiceResponseExceptionHandler extends ResponseEntityExceptionHandler {
@Autowired
private ObjectMapper objectMapper;
String msg = "mosip.partnermanagement";
String version = "1.0";
@Override
protected ResponseEntity
© 2015 - 2025 Weber Informatics LLC | Privacy Policy