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