Package com.openai.errors
Class UnprocessableEntityException.Builder
-
- All Implemented Interfaces:
public final class UnprocessableEntityException.BuilderA builder for UnprocessableEntityException.
-
-
Method Summary
Modifier and Type Method Description final UnprocessableEntityException.Builderheaders(Headers headers)final UnprocessableEntityException.Buildererror(ErrorObject error)final UnprocessableEntityException.Buildererror(Optional<ErrorObject> error)Alias for calling Builder.error with error.orElse(null).final UnprocessableEntityException.Buildercause(Throwable cause)final UnprocessableEntityException.Buildercause(Optional<Throwable> cause)Alias for calling Builder.cause with cause.orElse(null).final UnprocessableEntityExceptionbuild()Returns an immutable instance of UnprocessableEntityException. -
-
Method Detail
-
headers
final UnprocessableEntityException.Builder headers(Headers headers)
-
error
final UnprocessableEntityException.Builder error(ErrorObject error)
-
error
final UnprocessableEntityException.Builder error(Optional<ErrorObject> error)
Alias for calling Builder.error with
error.orElse(null).
-
cause
final UnprocessableEntityException.Builder cause(Throwable cause)
-
cause
final UnprocessableEntityException.Builder cause(Optional<Throwable> cause)
Alias for calling Builder.cause with
cause.orElse(null).
-
build
final UnprocessableEntityException build()
Returns an immutable instance of UnprocessableEntityException.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.headers()
-
-
-
-