@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(org.springframework.batch.core.repository.JobExecutionAlreadyRunningException e) |
org.springframework.hateoas.VndErrors |
onJobExecutionNotRunningException(org.springframework.batch.core.launch.JobExecutionNotRunningException e) |
org.springframework.hateoas.VndErrors |
onJobInstanceAlreadyCompleteException(org.springframework.batch.core.repository.JobInstanceAlreadyCompleteException e) |
org.springframework.hateoas.VndErrors |
onJobParametersInvalidException(org.springframework.batch.core.JobParametersInvalidException e) |
org.springframework.hateoas.VndErrors |
onJobRestartException(org.springframework.batch.core.repository.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 |
onNoSuchJobException(org.springframework.batch.admin.domain.NoSuchBatchJobException e) |
org.springframework.hateoas.VndErrors |
onNoSuchJobExecutionException(org.springframework.batch.core.launch.NoSuchJobExecutionException e) |
org.springframework.hateoas.VndErrors |
onNoSuchJobInstanceException(org.springframework.batch.admin.domain.NoSuchBatchJobInstanceException e) |
org.springframework.hateoas.VndErrors |
onNoSuchStepExecutionException(NoSuchStepExecutionException e) |
@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(Exception e)
@ResponseBody @ExceptionHandler @ResponseStatus(value=NOT_FOUND) public org.springframework.hateoas.VndErrors onNoSuchJobExecutionException(org.springframework.batch.core.launch.NoSuchJobExecutionException e)
@ResponseBody @ExceptionHandler @ResponseStatus(value=NOT_FOUND) public org.springframework.hateoas.VndErrors onJobExecutionNotRunningException(org.springframework.batch.core.launch.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(org.springframework.batch.core.repository.JobExecutionAlreadyRunningException e)
@ResponseBody @ExceptionHandler @ResponseStatus(value=BAD_REQUEST) public org.springframework.hateoas.VndErrors onJobRestartException(org.springframework.batch.core.repository.JobRestartException e)
@ResponseBody @ExceptionHandler @ResponseStatus(value=BAD_REQUEST) public org.springframework.hateoas.VndErrors onJobInstanceAlreadyCompleteException(org.springframework.batch.core.repository.JobInstanceAlreadyCompleteException e)
@ResponseBody @ExceptionHandler @ResponseStatus(value=NOT_FOUND) public org.springframework.hateoas.VndErrors onNoSuchJobException(org.springframework.batch.admin.domain.NoSuchBatchJobException e)
@ResponseBody @ExceptionHandler @ResponseStatus(value=NOT_FOUND) public org.springframework.hateoas.VndErrors onNoSuchJobInstanceException(org.springframework.batch.admin.domain.NoSuchBatchJobInstanceException e)
@ResponseBody @ExceptionHandler @ResponseStatus(value=BAD_REQUEST) public org.springframework.hateoas.VndErrors onJobParametersInvalidException(org.springframework.batch.core.JobParametersInvalidException e)
Copyright © 2015. All rights reserved.