All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.katharsis.errorhandling.mapper.ExceptionMapper Maven / Gradle / Ivy

There is a newer version: 2.6.3
Show newest version
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