@RestControllerAdvice(assignableTypes={Api.class,LandingPageApi.class,ConformanceApi.class,ProcessesApi.class,ProcessesApiExtension.class})
@RequestMapping(produces="application/json")
public class EngineExceptionAdvice
extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
INVALID_PARAMETER |
protected static String |
NO_APPLICABLE_CODE |
| Constructor and Description |
|---|
EngineExceptionAdvice(ExceptionSerializer exceptionSerializer) |
| Modifier and Type | Method and Description |
|---|---|
protected ExceptionSerializer |
getExceptionSerializer() |
Exception |
handle(EngineException ex) |
Exception |
handle(Exception ex) |
Exception |
handle(ExecutionException ex) |
Exception |
handle(InputDecodingException ex) |
Exception |
handle(JobNotFoundException ex) |
Exception |
handle(OutputEncodingException ex) |
Exception |
handle(OutputNotFoundException ex) |
Exception |
handle(ProcessNotFoundException ex) |
Exception |
handle(UnsupportedInputFormatException ex) |
Exception |
handle(UnsupportedOutputFormatException ex) |
protected static final String INVALID_PARAMETER
protected static final String NO_APPLICABLE_CODE
@Autowired public EngineExceptionAdvice(ExceptionSerializer exceptionSerializer)
protected ExceptionSerializer getExceptionSerializer()
@ResponseStatus(value=NOT_FOUND) @ExceptionHandler(value=org.n52.javaps.engine.JobNotFoundException.class) public Exception handle(JobNotFoundException ex)
@ResponseStatus(value=NOT_FOUND) @ExceptionHandler(value=org.n52.javaps.engine.ProcessNotFoundException.class) public Exception handle(ProcessNotFoundException ex)
@ResponseStatus(value=NOT_FOUND) @ExceptionHandler(value=org.n52.javaps.engine.OutputNotFoundException.class) public Exception handle(OutputNotFoundException ex)
@ResponseStatus(value=BAD_REQUEST) @ExceptionHandler(value=org.n52.javaps.engine.InputDecodingException.class) public Exception handle(InputDecodingException ex)
@ResponseStatus(value=INTERNAL_SERVER_ERROR) @ExceptionHandler(value=org.n52.javaps.engine.OutputEncodingException.class) public Exception handle(OutputEncodingException ex)
@ResponseStatus(value=BAD_REQUEST) @ExceptionHandler(value=org.n52.javaps.engine.UnsupportedInputFormatException.class) public Exception handle(UnsupportedInputFormatException ex)
@ResponseStatus(value=BAD_REQUEST) @ExceptionHandler(value=org.n52.javaps.engine.UnsupportedOutputFormatException.class) public Exception handle(UnsupportedOutputFormatException ex)
@ResponseStatus(value=INTERNAL_SERVER_ERROR) @ExceptionHandler(value=org.n52.javaps.engine.EngineException.class) public Exception handle(EngineException ex)
@ResponseStatus(value=INTERNAL_SERVER_ERROR) @ExceptionHandler(value=java.lang.Exception.class) public Exception handle(Exception ex)
@ResponseStatus(value=INTERNAL_SERVER_ERROR) @ExceptionHandler(value=org.n52.javaps.algorithm.ExecutionException.class) public Exception handle(ExecutionException ex)
Copyright © 2016–2020 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.