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