@ControllerAdvice
public class RestControllerAdvice
extends java.lang.Object
Constructor and Description |
---|
RestControllerAdvice() |
Modifier and Type | Method and Description |
---|---|
org.springframework.hateoas.VndErrors |
onAlreadyDeployedException(AlreadyDeployedException e)
Handles the case where client tried to deploy something that is already deployed.
|
org.springframework.hateoas.VndErrors |
onBatchJobAlreadyExists(BatchJobAlreadyExistsException e) |
org.springframework.hateoas.VndErrors |
onDefinitionAlreadyExistsException(DefinitionAlreadyExistsException e)
Handles the case where client referenced an entity that already exists.
|
org.springframework.hateoas.VndErrors |
onException(java.lang.Exception e)
Handles the general error case.
|
org.springframework.hateoas.VndErrors |
onInvalidDefintion(StreamDefinitionException e)
Handles the case where client tried to deploy something that is has an invalid definition.
|
org.springframework.hateoas.VndErrors |
onJobExecutionAlreadyRunningException(JobExecutionAlreadyRunningException e) |
org.springframework.hateoas.VndErrors |
onJobExecutionNotRunningException(JobExecutionNotRunningException e) |
org.springframework.hateoas.VndErrors |
onJobInstanceAlreadyCompleteException(JobInstanceAlreadyCompleteException e) |
org.springframework.hateoas.VndErrors |
onJobParametersInvalidException(JobParametersInvalidException e) |
org.springframework.hateoas.VndErrors |
onJobRestartException(JobRestartException e) |
org.springframework.hateoas.VndErrors |
onMissingServletRequestParameterException(org.springframework.web.bind.MissingServletRequestParameterException e)
Handles the case where client submitted an ill valued request (missing parameter).
|
org.springframework.hateoas.VndErrors |
onModuleAlreadyExistsException(ModuleAlreadyExistsException e) |
org.springframework.hateoas.VndErrors |
onModuleNotDeployedException(ModuleNotDeployedException e) |
org.springframework.hateoas.VndErrors |
onNoSuchDefinitionException(NoSuchDefinitionException e)
Handles the case where client referenced an unknown entity.
|
org.springframework.hateoas.VndErrors |
onNoSuchJobException(NoSuchBatchJobException e) |
org.springframework.hateoas.VndErrors |
onNoSuchJobExecutionException(NoSuchJobExecutionException e) |
org.springframework.hateoas.VndErrors |
onNoSuchJobInstanceException(NoSuchBatchJobInstanceException e) |
org.springframework.hateoas.VndErrors |
onNoSuchMetricException(NoSuchMetricException e) |
org.springframework.hateoas.VndErrors |
onNoSuchModuleException(NoSuchModuleException e) |
org.springframework.hateoas.VndErrors |
onNoSuchStepExecutionException(NoSuchStepExecutionException e) |
org.springframework.hateoas.VndErrors |
onNotDeployedException(NotDeployedException e)
Handles the case where client tried to un-deploy something that is not currently deployed.
|
@ExceptionHandler @ResponseStatus(value=BAD_REQUEST) @ResponseBody public org.springframework.hateoas.VndErrors onMissingServletRequestParameterException(org.springframework.web.bind.MissingServletRequestParameterException e)
@ExceptionHandler(value=java.lang.Exception.class) @ResponseStatus(value=INTERNAL_SERVER_ERROR) @ResponseBody public org.springframework.hateoas.VndErrors onException(java.lang.Exception e)
@ResponseBody @ExceptionHandler @ResponseStatus(value=NOT_FOUND) public org.springframework.hateoas.VndErrors onNoSuchDefinitionException(NoSuchDefinitionException e)
@ResponseBody @ExceptionHandler @ResponseStatus(value=BAD_REQUEST) public org.springframework.hateoas.VndErrors onDefinitionAlreadyExistsException(DefinitionAlreadyExistsException e)
@ResponseBody @ExceptionHandler @ResponseStatus(value=BAD_REQUEST) public org.springframework.hateoas.VndErrors onAlreadyDeployedException(AlreadyDeployedException e)
@ResponseBody @ExceptionHandler @ResponseStatus(value=BAD_REQUEST) public org.springframework.hateoas.VndErrors onNotDeployedException(NotDeployedException e)
@ResponseBody @ExceptionHandler @ResponseStatus(value=BAD_REQUEST) public org.springframework.hateoas.VndErrors onInvalidDefintion(StreamDefinitionException e)
@ResponseBody @ExceptionHandler @ResponseStatus(value=CONFLICT) public org.springframework.hateoas.VndErrors onModuleAlreadyExistsException(ModuleAlreadyExistsException e)
@ResponseBody @ExceptionHandler @ResponseStatus(value=NOT_FOUND) public org.springframework.hateoas.VndErrors onNoSuchMetricException(NoSuchMetricException e)
@ResponseBody @ExceptionHandler @ResponseStatus(value=NOT_FOUND) public org.springframework.hateoas.VndErrors onModuleNotDeployedException(ModuleNotDeployedException e)
@ResponseBody @ExceptionHandler @ResponseStatus(value=NOT_FOUND) public org.springframework.hateoas.VndErrors onNoSuchModuleException(NoSuchModuleException e)
@ResponseBody @ExceptionHandler @ResponseStatus(value=NOT_FOUND) public org.springframework.hateoas.VndErrors onNoSuchJobExecutionException(NoSuchJobExecutionException e)
@ResponseBody @ExceptionHandler @ResponseStatus(value=NOT_FOUND) public org.springframework.hateoas.VndErrors onJobExecutionNotRunningException(JobExecutionNotRunningException e)
@ResponseBody @ExceptionHandler @ResponseStatus(value=NOT_FOUND) public org.springframework.hateoas.VndErrors onNoSuchStepExecutionException(NoSuchStepExecutionException e)
@ResponseBody @ExceptionHandler @ResponseStatus(value=BAD_REQUEST) public org.springframework.hateoas.VndErrors onJobExecutionAlreadyRunningException(JobExecutionAlreadyRunningException e)
@ResponseBody @ExceptionHandler @ResponseStatus(value=BAD_REQUEST) public org.springframework.hateoas.VndErrors onJobRestartException(JobRestartException e)
@ResponseBody @ExceptionHandler @ResponseStatus(value=BAD_REQUEST) public org.springframework.hateoas.VndErrors onJobInstanceAlreadyCompleteException(JobInstanceAlreadyCompleteException e)
@ResponseBody @ExceptionHandler @ResponseStatus(value=NOT_FOUND) public org.springframework.hateoas.VndErrors onNoSuchJobException(NoSuchBatchJobException e)
@ResponseBody @ExceptionHandler @ResponseStatus(value=BAD_REQUEST) public org.springframework.hateoas.VndErrors onBatchJobAlreadyExists(BatchJobAlreadyExistsException e)
@ResponseBody @ExceptionHandler @ResponseStatus(value=NOT_FOUND) public org.springframework.hateoas.VndErrors onNoSuchJobInstanceException(NoSuchBatchJobInstanceException e)
@ResponseBody @ExceptionHandler @ResponseStatus(value=BAD_REQUEST) public org.springframework.hateoas.VndErrors onJobParametersInvalidException(JobParametersInvalidException e)