@ControllerAdvice
public class DocumentExceptionHandler
extends java.lang.Object
| Constructor and Description |
|---|
DocumentExceptionHandler() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<org.springframework.validation.FieldError> |
handle(com.clusterra.pmbok.document.domain.service.document.DocumentNotFoundException exception) |
java.util.List<org.springframework.validation.FieldError> |
handle(com.clusterra.pmbok.document.domain.model.template.SectionTemplateNotFoundException exception) |
@ExceptionHandler(value=com.clusterra.pmbok.document.domain.service.document.DocumentNotFoundException.class)
@ResponseStatus(value=NOT_FOUND,
reason="document not found")
@ResponseBody
public java.util.List<org.springframework.validation.FieldError> handle(com.clusterra.pmbok.document.domain.service.document.DocumentNotFoundException exception)
@ExceptionHandler(value=com.clusterra.pmbok.document.domain.model.template.SectionTemplateNotFoundException.class) @ResponseStatus(value=UNPROCESSABLE_ENTITY) @ResponseBody public java.util.List<org.springframework.validation.FieldError> handle(com.clusterra.pmbok.document.domain.model.template.SectionTemplateNotFoundException exception)