@Order(value=2147483647) @ControllerAdvice public class ResourceControllerAdvice extends Object implements BonitaExceptionHandler
| Constructor and Description |
|---|
ResourceControllerAdvice() |
| Modifier and Type | Method and Description |
|---|---|
static org.springframework.http.HttpHeaders |
getHttpHeaders()
Construct Header to specify content-type
|
org.springframework.http.ResponseEntity<ErrorMessage> |
handleConstraintValidationException(ConstraintValidationException exception) |
org.springframework.http.ResponseEntity<ErrorMessage> |
handleIllegalArgumentException(IllegalArgumentException exception) |
org.springframework.http.ResponseEntity<ErrorMessage> |
handleImportException(ImportException exception) |
org.springframework.http.ResponseEntity<ErrorMessage> |
handleInUseException(InUseException exception) |
org.springframework.http.ResponseEntity<ErrorMessage> |
handleIOException(IOException exception) |
org.springframework.http.ResponseEntity<ErrorMessage> |
handleJsonProcessingException(MalformedJsonException exception) |
org.springframework.http.ResponseEntity<ErrorMessage> |
handleNotAllowedException(NotAllowedException exception) |
org.springframework.http.ResponseEntity<ErrorMessage> |
handleNotFoundException(NotFoundException exception) |
org.springframework.http.ResponseEntity<ErrorMessage> |
handleRepositoryException(RepositoryException exception) |
org.springframework.http.ResponseEntity<ErrorMessage> |
handleRepositoryException(RuntimeException exception) |
public static org.springframework.http.HttpHeaders getHttpHeaders()
@ExceptionHandler(value=java.lang.IllegalArgumentException.class) @ResponseStatus(value=BAD_REQUEST) public org.springframework.http.ResponseEntity<ErrorMessage> handleIllegalArgumentException(IllegalArgumentException exception)
@ExceptionHandler(value=ConstraintValidationException.class) @ResponseStatus(value=BAD_REQUEST) public org.springframework.http.ResponseEntity<ErrorMessage> handleConstraintValidationException(ConstraintValidationException exception)
@ExceptionHandler(value=NotAllowedException.class) public org.springframework.http.ResponseEntity<ErrorMessage> handleNotAllowedException(NotAllowedException exception)
@ExceptionHandler(value=NotFoundException.class) public org.springframework.http.ResponseEntity<ErrorMessage> handleNotFoundException(NotFoundException exception)
@ExceptionHandler(value=java.io.IOException.class) public org.springframework.http.ResponseEntity<ErrorMessage> handleIOException(IOException exception)
@ExceptionHandler(value=RepositoryException.class) public org.springframework.http.ResponseEntity<ErrorMessage> handleRepositoryException(RepositoryException exception)
@ExceptionHandler(value=InUseException.class) public org.springframework.http.ResponseEntity<ErrorMessage> handleInUseException(InUseException exception)
@ExceptionHandler(value=java.lang.RuntimeException.class) public org.springframework.http.ResponseEntity<ErrorMessage> handleRepositoryException(RuntimeException exception)
@ExceptionHandler(value=ImportException.class) public org.springframework.http.ResponseEntity<ErrorMessage> handleImportException(ImportException exception)
@ExceptionHandler(value=MalformedJsonException.class) public org.springframework.http.ResponseEntity<ErrorMessage> handleJsonProcessingException(MalformedJsonException exception)
Copyright © 2020. All rights reserved.