Package dev.langchain4j.internal
Interface ExceptionMapper
-
- All Implemented Interfaces:
@FunctionalInterface() public interface ExceptionMapper
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
ExceptionMapper.DefaultExceptionMapper
-
Method Summary
Modifier and Type Method Description static <T> T
mappingException(Callable<T> action)
<T> T
withExceptionMapper(Callable<T> action)
abstract RuntimeException
mapException(Exception e)
-
-
Method Detail
-
mappingException
static <T> T mappingException(Callable<T> action)
-
withExceptionMapper
<T> T withExceptionMapper(Callable<T> action)
-
mapException
abstract RuntimeException mapException(Exception e)
-
-
-
-