类 Exceptions
java.lang.Object
dev.langchain4j.internal.Exceptions
Utility methods for creating common exceptions.
-
方法概要
修饰符和类型方法说明static IllegalArgumentExceptionillegalArgument(String format, Object... args) Constructs anIllegalArgumentExceptionwith the given formatted result.static RuntimeExceptionConstructs anRuntimeExceptionwith the given formatted result.
-
方法详细资料
-
illegalArgument
Constructs anIllegalArgumentExceptionwith the given formatted result.Equivalent to
new IllegalArgumentException(String.format(format, args)).- 参数:
format- the format stringargs- the format arguments- 返回:
- the constructed exception.
-
runtime
Constructs anRuntimeExceptionwith the given formatted result.Equivalent to
new RuntimeException(String.format(format, args)).- 参数:
format- the format stringargs- the format arguments- 返回:
- the constructed exception.
-