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