@ControllerAdvice
public class TemplateExceptionHandler
extends java.lang.Object
| Constructor and Description |
|---|
TemplateExceptionHandler() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<org.springframework.validation.ObjectError> |
handle(com.clusterra.pmbok.document.domain.model.template.SectionTemplateNotFoundException exception) |
java.util.List<org.springframework.validation.FieldError> |
handle(com.clusterra.pmbok.document.domain.service.template.TemplateAlreadyExistsException exception) |
java.util.List<org.springframework.validation.ObjectError> |
handle(com.clusterra.pmbok.document.domain.service.template.TemplateNotFoundException exception) |
java.util.List<org.springframework.validation.ObjectError> |
handle(com.clusterra.pmbok.document.domain.service.document.listen.TemplateUsedException exception) |
@ExceptionHandler(value=com.clusterra.pmbok.document.domain.service.template.TemplateAlreadyExistsException.class) @ResponseStatus(value=UNPROCESSABLE_ENTITY) @ResponseBody public java.util.List<org.springframework.validation.FieldError> handle(com.clusterra.pmbok.document.domain.service.template.TemplateAlreadyExistsException exception)
@ExceptionHandler(value=com.clusterra.pmbok.document.domain.service.template.TemplateNotFoundException.class) @ResponseStatus(value=UNPROCESSABLE_ENTITY) @ResponseBody public java.util.List<org.springframework.validation.ObjectError> handle(com.clusterra.pmbok.document.domain.service.template.TemplateNotFoundException exception)
@ExceptionHandler(value=com.clusterra.pmbok.document.domain.model.template.SectionTemplateNotFoundException.class) @ResponseStatus(value=UNPROCESSABLE_ENTITY) @ResponseBody public java.util.List<org.springframework.validation.ObjectError> handle(com.clusterra.pmbok.document.domain.model.template.SectionTemplateNotFoundException exception)
@ExceptionHandler(value=com.clusterra.pmbok.document.domain.service.document.listen.TemplateUsedException.class) @ResponseStatus(value=UNPROCESSABLE_ENTITY) @ResponseBody public java.util.List<org.springframework.validation.ObjectError> handle(com.clusterra.pmbok.document.domain.service.document.listen.TemplateUsedException exception)