@Configuration
@ControllerAdvice
public class TdsErrorHandling
extends java.lang.Object
implements org.springframework.web.servlet.HandlerExceptionResolver
| Constructor and Description |
|---|
TdsErrorHandling() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<java.lang.String> |
handle(org.springframework.validation.BindException ex) |
org.springframework.http.ResponseEntity<java.lang.String> |
handle(java.io.FileNotFoundException ex) |
org.springframework.http.ResponseEntity<java.lang.String> |
handle(java.lang.IllegalArgumentException ex) |
org.springframework.http.ResponseEntity<java.lang.String> |
handle(java.io.IOException ex) |
org.springframework.http.ResponseEntity<java.lang.String> |
handle(NcssException ex) |
org.springframework.http.ResponseEntity<java.lang.String> |
handle(RequestTooLargeException ex) |
org.springframework.http.ResponseEntity<java.lang.String> |
handle(ServiceNotAllowed ex) |
org.springframework.http.ResponseEntity<java.lang.String> |
handle(org.springframework.web.bind.ServletRequestBindingException ex) |
org.springframework.http.ResponseEntity<java.lang.String> |
handle(java.lang.Throwable ex) |
org.springframework.web.servlet.ModelAndView |
resolveException(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Object handler,
java.lang.Exception ex) |
@ExceptionHandler(value=ServiceNotAllowed.class) public org.springframework.http.ResponseEntity<java.lang.String> handle(ServiceNotAllowed ex)
@ExceptionHandler(value=RequestTooLargeException.class) public org.springframework.http.ResponseEntity<java.lang.String> handle(RequestTooLargeException ex)
@ExceptionHandler(value=java.io.FileNotFoundException.class) public org.springframework.http.ResponseEntity<java.lang.String> handle(java.io.FileNotFoundException ex)
@ExceptionHandler(value=java.io.IOException.class) public org.springframework.http.ResponseEntity<java.lang.String> handle(java.io.IOException ex)
@ExceptionHandler(value=java.lang.IllegalArgumentException.class) public org.springframework.http.ResponseEntity<java.lang.String> handle(java.lang.IllegalArgumentException ex)
@ExceptionHandler(value=NcssException.class) public org.springframework.http.ResponseEntity<java.lang.String> handle(NcssException ex)
@ExceptionHandler(value=org.springframework.web.bind.ServletRequestBindingException.class) public org.springframework.http.ResponseEntity<java.lang.String> handle(org.springframework.web.bind.ServletRequestBindingException ex)
@ExceptionHandler(value=org.springframework.validation.BindException.class) public org.springframework.http.ResponseEntity<java.lang.String> handle(org.springframework.validation.BindException ex)
@ExceptionHandler(value=java.lang.Throwable.class)
public org.springframework.http.ResponseEntity<java.lang.String> handle(java.lang.Throwable ex)
throws java.lang.Throwable
java.lang.Throwablepublic org.springframework.web.servlet.ModelAndView resolveException(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Object handler,
java.lang.Exception ex)
resolveException in interface org.springframework.web.servlet.HandlerExceptionResolver