Class CheckedExceptionService
- java.lang.Object
-
- io.foodtechlab.exception.converter.core.CheckedExceptionService
-
@Component public class CheckedExceptionService extends Object
-
-
Constructor Summary
Constructors Constructor Description CheckedExceptionService(Collection<CheckedExceptionApiConverter<?,?>> mappers, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.foodtechlab.exception.converter.rcore.resource.CheckedExceptionResponseconvert(io.foodtechlab.exception.converter.domain.CheckedDomainException exception)Конвертирует домен в API модельCheckedExceptionApiConverter<?,?>findConverter(String domain, String reason)io.foodtechlab.exception.converter.domain.CheckedDomainExceptionparse(io.foodtechlab.exception.converter.rcore.resource.CheckedExceptionResponse response)Парсит ошибку в домен из запроса
-
-
-
Constructor Detail
-
CheckedExceptionService
public CheckedExceptionService(Collection<CheckedExceptionApiConverter<?,?>> mappers, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Detail
-
findConverter
public CheckedExceptionApiConverter<?,?> findConverter(String domain, String reason)
-
parse
public io.foodtechlab.exception.converter.domain.CheckedDomainException parse(io.foodtechlab.exception.converter.rcore.resource.CheckedExceptionResponse response)
Парсит ошибку в домен из запроса
-
convert
public io.foodtechlab.exception.converter.rcore.resource.CheckedExceptionResponse convert(io.foodtechlab.exception.converter.domain.CheckedDomainException exception)
Конвертирует домен в API модель
-
-