public class HibernateConstraintViolationExceptionMapper
extends java.lang.Object
implements io.crnk.core.engine.error.ExceptionMapper<org.hibernate.exception.ConstraintViolationException>
| Constructor and Description |
|---|
HibernateConstraintViolationExceptionMapper() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(io.crnk.core.engine.error.ErrorResponse errorResponse) |
org.hibernate.exception.ConstraintViolationException |
fromErrorResponse(io.crnk.core.engine.error.ErrorResponse errorResponse) |
io.crnk.core.engine.error.ErrorResponse |
toErrorResponse(org.hibernate.exception.ConstraintViolationException cve) |
public HibernateConstraintViolationExceptionMapper()
public io.crnk.core.engine.error.ErrorResponse toErrorResponse(org.hibernate.exception.ConstraintViolationException cve)
toErrorResponse in interface io.crnk.core.engine.error.ExceptionMapper<org.hibernate.exception.ConstraintViolationException>toErrorResponse in interface io.crnk.core.engine.error.JsonApiExceptionMapper<org.hibernate.exception.ConstraintViolationException>public org.hibernate.exception.ConstraintViolationException fromErrorResponse(io.crnk.core.engine.error.ErrorResponse errorResponse)
fromErrorResponse in interface io.crnk.core.engine.error.ExceptionMapper<org.hibernate.exception.ConstraintViolationException>public boolean accepts(io.crnk.core.engine.error.ErrorResponse errorResponse)
accepts in interface io.crnk.core.engine.error.ExceptionMapper<org.hibernate.exception.ConstraintViolationException>