Package de.xima.fc.prompt.service
Class PromptExecutionException.Builder<Instance,Builder>
- java.lang.Object
-
- de.xima.fc.prompt.service.PromptExecutionException.Builder<Instance,Builder>
-
- Type Parameters:
Instance- The type of the exception subclass.Builder- The type of the builder subclass.
- Direct Known Subclasses:
ExecutionFailedException.Builder,InvalidConfigurationException.Builder,InvalidInputParamsException.Builder,InvalidOutputParamsException.Builder,MissingPromptServiceException.Builder,RateLimitExceededException.Builder,RequestRefusedException.Builder,ResponseRefusedException.Builder,ServiceUnavailableException.Builder,UnauthorizedPromptRequestException.Builder
- Enclosing class:
- PromptExecutionException
protected abstract static class PromptExecutionException.Builder<Instance,Builder> extends Object
Base builder class for prompt execution exceptions.- Since:
- 8.5.0
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Instancebuild()Creates the exception instance with the configured values.Buildercause(Throwable cause)Sets the cause of the exception.Buildermessage(String message)Sets the technical message for the exception.
-
-
-
Method Detail
-
build
public abstract Instance build()
Creates the exception instance with the configured values.- Returns:
- The created exception instance.
-
cause
public final Builder cause(Throwable cause)
Sets the cause of the exception.- Parameters:
cause- The cause of the exception.- Returns:
- The builder instance.
-
-