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