Package de.xima.fc.prompt.service
Class ResponseRefusedException.Builder
- java.lang.Object
-
- de.xima.fc.prompt.service.PromptExecutionException.Builder<ResponseRefusedException,ResponseRefusedException.Builder>
-
- de.xima.fc.prompt.service.ResponseRefusedException.Builder
-
- Enclosing class:
- ResponseRefusedException
public static final class ResponseRefusedException.Builder extends PromptExecutionException.Builder<ResponseRefusedException,ResponseRefusedException.Builder>
Builder for aResponseRefusedException.- Since:
- 8.5.0
-
-
Field Summary
-
Fields inherited from class de.xima.fc.prompt.service.PromptExecutionException.Builder
cause, message
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponseRefusedExceptionbuild()Creates the exception instance with the configured values.ResponseRefusedException.BuilderrefusalReason(String refusalReason)Sets the reason why the response was refused.-
Methods inherited from class de.xima.fc.prompt.service.PromptExecutionException.Builder
cause, message
-
-
-
-
Method Detail
-
build
public ResponseRefusedException build()
Description copied from class:PromptExecutionException.BuilderCreates the exception instance with the configured values.- Specified by:
buildin classPromptExecutionException.Builder<ResponseRefusedException,ResponseRefusedException.Builder>- Returns:
- The created exception instance.
-
refusalReason
public ResponseRefusedException.Builder refusalReason(String refusalReason)
Sets the reason why the response was refused. This can be used to provide more context about the refusal.- Parameters:
refusalReason- The reason why the response was refused.- Returns:
- The builder instance.
-
-