@ControllerAdvice
public class ProjectExceptionHandler
extends java.lang.Object
| Constructor and Description |
|---|
ProjectExceptionHandler() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<org.springframework.validation.ObjectError> |
handle(org.springframework.validation.BindException exception) |
java.util.List<org.springframework.validation.FieldError> |
handle(com.clusterra.pmbok.project.domain.service.IncorrectProjectVersionException exception) |
java.util.List<org.springframework.validation.FieldError> |
handle(com.clusterra.pmbok.project.domain.service.ProjectNotFoundException exception) |
java.util.List<org.springframework.validation.FieldError> |
handle(com.clusterra.pmbok.project.domain.service.ProjectVersionNotFoundException exception) |
@ExceptionHandler(value=org.springframework.validation.BindException.class) @ResponseStatus(value=UNPROCESSABLE_ENTITY) @ResponseBody public java.util.List<org.springframework.validation.ObjectError> handle(org.springframework.validation.BindException exception)
@ExceptionHandler(value=com.clusterra.pmbok.project.domain.service.IncorrectProjectVersionException.class) @ResponseStatus(value=UNPROCESSABLE_ENTITY) @ResponseBody public java.util.List<org.springframework.validation.FieldError> handle(com.clusterra.pmbok.project.domain.service.IncorrectProjectVersionException exception)
@ExceptionHandler(value=com.clusterra.pmbok.project.domain.service.ProjectVersionNotFoundException.class) @ResponseStatus(value=NOT_FOUND) @ResponseBody public java.util.List<org.springframework.validation.FieldError> handle(com.clusterra.pmbok.project.domain.service.ProjectVersionNotFoundException exception)
@ExceptionHandler(value=com.clusterra.pmbok.project.domain.service.ProjectNotFoundException.class)
@ResponseStatus(value=NOT_FOUND,
reason="project not found")
@ResponseBody
public java.util.List<org.springframework.validation.FieldError> handle(com.clusterra.pmbok.project.domain.service.ProjectNotFoundException exception)