Class AssetExceptionMapping
- java.lang.Object
-
- io.resys.wrench.assets.controllers.exception.AssetExceptionMapping
-
@ControllerAdvice public class AssetExceptionMapping extends Object
-
-
Constructor Summary
Constructors Constructor Description AssetExceptionMapping()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringexceptionHash(String msg, long timestamp)Calculate unique hash for exception caseorg.springframework.http.ResponseEntity<Object>handleConflict(Exception t, org.springframework.web.context.request.WebRequest webRequest)protected org.springframework.http.ResponseEntity<Object>handleExceptionInternal(Exception ex, Object body, org.springframework.http.HttpHeaders headers, org.springframework.http.HttpStatus status, org.springframework.web.context.request.WebRequest request)protected Messagetranslate(Message message)
-
-
-
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
-
-