Class ExceptionsHandler
- java.lang.Object
-
- eu.dnetlib.uoamonitorservice.handlers.ExceptionsHandler
-
@ControllerAdvice @RestController public class ExceptionsHandler extends Object
-
-
Constructor Summary
Constructors Constructor Description ExceptionsHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<eu.dnetlib.uoaadmintoolslibrary.responses.ExceptionResponse>entityNotFoundException(Exception ex)org.springframework.http.ResponseEntity<eu.dnetlib.uoaadmintoolslibrary.responses.ExceptionResponse>pathNotValidException(Exception ex)
-
-
-
Method Detail
-
entityNotFoundException
@ExceptionHandler(EntityNotFoundException.class) public org.springframework.http.ResponseEntity<eu.dnetlib.uoaadmintoolslibrary.responses.ExceptionResponse> entityNotFoundException(Exception ex)
-
pathNotValidException
@ExceptionHandler(PathNotValidException.class) public org.springframework.http.ResponseEntity<eu.dnetlib.uoaadmintoolslibrary.responses.ExceptionResponse> pathNotValidException(Exception ex)
-
-