Class AssetExceptionMapping


  • @ControllerAdvice
    public class AssetExceptionMapping
    extends Object
    • Constructor Detail

      • AssetExceptionMapping

        public AssetExceptionMapping()
    • Method Detail

      • handleConflict

        @ExceptionHandler(java.lang.Exception.class)
        public org.springframework.http.ResponseEntity<Object> handleConflict​(Exception t,
                                                                              org.springframework.web.context.request.WebRequest webRequest)
      • handleExceptionInternal

        protected org.springframework.http.ResponseEntity<Object> handleExceptionInternal​(Exception ex,
                                                                                          @Nullable
                                                                                          Object body,
                                                                                          org.springframework.http.HttpHeaders headers,
                                                                                          org.springframework.http.HttpStatus status,
                                                                                          org.springframework.web.context.request.WebRequest request)
      • exceptionHash

        protected String exceptionHash​(String msg,
                                       long timestamp)
        Calculate unique hash for exception case
        Returns:
        Unique hash for exception