io.katharsis.errorhandling.mapper.ExceptionMapper Maven / Gradle / Ivy
package io.katharsis.errorhandling.mapper;
import io.katharsis.errorhandling.ErrorResponse;
public interface ExceptionMapper extends JsonApiExceptionMapper {
@Override
ErrorResponse toErrorResponse(E exception);
/**
* Convert the given error response to an exception.
*
* @param errorResponse error response
* @return true if mapper can handle the response
*/
E fromErrorResponse(ErrorResponse errorResponse);
boolean accepts(ErrorResponse errorResponse);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy