Package com.openai.errors
Class UnprocessableEntityException.Builder
-
- All Implemented Interfaces:
public final class UnprocessableEntityException.Builder
A builder for UnprocessableEntityException.
-
-
Method Summary
Modifier and Type Method Description final UnprocessableEntityException.Builder
headers(Headers headers)
final UnprocessableEntityException.Builder
error(ErrorObject error)
final UnprocessableEntityException.Builder
error(Optional<ErrorObject> error)
Alias for calling Builder.error with error.orElse(null)
.final UnprocessableEntityException.Builder
cause(Throwable cause)
final UnprocessableEntityException.Builder
cause(Optional<Throwable> cause)
Alias for calling Builder.cause with cause.orElse(null)
.final UnprocessableEntityException
build()
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()
-
-
-
-