public class PersistenceExceptionMapper
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected io.crnk.core.module.Module.ModuleContext |
context |
| Constructor and Description |
|---|
PersistenceExceptionMapper(io.crnk.core.module.Module.ModuleContext context) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(io.crnk.core.engine.error.ErrorResponse errorResponse) |
E |
fromErrorResponse(io.crnk.core.engine.error.ErrorResponse errorResponse) |
protected int |
getStatus() |
io.crnk.core.engine.error.ErrorResponse |
toErrorResponse(E exception) |
public PersistenceExceptionMapper(io.crnk.core.module.Module.ModuleContext context)
public io.crnk.core.engine.error.ErrorResponse toErrorResponse(E exception)
toErrorResponse in interface io.crnk.core.engine.error.ExceptionMapper<E extends java.lang.Throwable>toErrorResponse in interface io.crnk.core.engine.error.JsonApiExceptionMapper<E extends java.lang.Throwable>protected int getStatus()
public E fromErrorResponse(io.crnk.core.engine.error.ErrorResponse errorResponse)
fromErrorResponse in interface io.crnk.core.engine.error.ExceptionMapper<E extends java.lang.Throwable>public boolean accepts(io.crnk.core.engine.error.ErrorResponse errorResponse)
accepts in interface io.crnk.core.engine.error.ExceptionMapper<E extends java.lang.Throwable>