@ControllerAdvice public class WebApplicationExceptionMapper extends Object
Constructor and Description |
---|
WebApplicationExceptionMapper() |
Modifier and Type | Method and Description |
---|---|
org.springframework.http.ResponseEntity |
handleNotException(NotFoundException e) |
org.springframework.http.ResponseEntity |
handleWebApplicationException(WebApplicationException e) |
public WebApplicationExceptionMapper()
@ExceptionHandler(value=WebApplicationException.class) public org.springframework.http.ResponseEntity handleWebApplicationException(WebApplicationException e)
@ExceptionHandler(value=NotFoundException.class) public org.springframework.http.ResponseEntity handleNotException(NotFoundException e)
Copyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.