@RestControllerAdvice(assignableTypes=TransactionalApi.class) @RequestMapping(produces="application/json") public class TransactionalEngineExceptionAdvice extends EngineExceptionAdvice
RestControllerAdvice to the TransactionalApi.INVALID_PARAMETER, NO_APPLICABLE_CODE| Constructor and Description |
|---|
TransactionalEngineExceptionAdvice(ExceptionSerializer serializer)
Set the
ExceptionSerializer. |
| Modifier and Type | Method and Description |
|---|---|
Exception |
handle(DuplicateProcessException ex)
Handle a
DuplicateProcessException. |
Exception |
handle(UndeletableProcessException ex)
Handle a
UndeletableProcessException. |
Exception |
handle(UnsupportedProcessException ex)
Handle a
UnsupportedProcessException. |
@Autowired public TransactionalEngineExceptionAdvice(ExceptionSerializer serializer)
ExceptionSerializer.serializer - The ExceptionSerializer.@ResponseStatus(value=CONFLICT) @ExceptionHandler(value=org.n52.javaps.transactional.DuplicateProcessException.class) public Exception handle(DuplicateProcessException ex)
DuplicateProcessException.ex - The exception.@ResponseStatus(value=BAD_REQUEST) @ExceptionHandler(value=org.n52.javaps.transactional.UnsupportedProcessException.class) public Exception handle(UnsupportedProcessException ex)
UnsupportedProcessException.ex - The exception.@ResponseStatus(value=BAD_REQUEST) @ExceptionHandler(value=org.n52.javaps.transactional.UndeletableProcessException.class) public Exception handle(UndeletableProcessException ex)
UndeletableProcessException.ex - The exception.Copyright © 2016–2023 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.