@ControllerAdvice public class RestControllerAdvice extends Object
Constructor and Description |
---|
RestControllerAdvice() |
Modifier and Type | Method and Description |
---|---|
org.springframework.hateoas.VndErrors |
onException(Exception e)
Handles the general error case.
|
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(MissingServletRequestParameterException e)
Handles the case where client submitted an ill valued request (missing parameter).
|
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 |
onNoSuchStepExecutionException(NoSuchStepExecutionException e) |
@ExceptionHandler @ResponseStatus(value=BAD_REQUEST) @ResponseBody public org.springframework.hateoas.VndErrors onMissingServletRequestParameterException(MissingServletRequestParameterException e)
@ExceptionHandler(value=java.lang.Exception.class) @ResponseStatus(value=INTERNAL_SERVER_ERROR) @ResponseBody public org.springframework.hateoas.VndErrors onException(Exception 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=NOT_FOUND) public org.springframework.hateoas.VndErrors onNoSuchJobInstanceException(NoSuchBatchJobInstanceException e)
@ResponseBody @ExceptionHandler @ResponseStatus(value=BAD_REQUEST) public org.springframework.hateoas.VndErrors onJobParametersInvalidException(JobParametersInvalidException e)
Copyright © 2015. All rights reserved.