Class WorkspacePolicyViolationException
-
- All Implemented Interfaces:
-
java.io.Serializable
public final class WorkspacePolicyViolationException extends BadRequestException
The request breaks the organization's Workspace Policy. The message says which rule it broke; an organization admin can see and change the policy in the Console.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classWorkspacePolicyViolationException.BuilderA builder for WorkspacePolicyViolationException.
-
Field Summary
Fields Modifier and Type Field Description private final Stringmessageprivate final Throwablecauseprivate final StringlocalizedMessageprivate final Array<Throwable>suppressedprivate Array<StackTraceElement>stackTrace
-
Method Summary
Modifier and Type Method Description final WorkspacePolicyViolationErrorDetailsdetails()error.detailsof body.WorkspacePolicyViolationException.BuildertoBuilder()final static WorkspacePolicyViolationException.Builderbuilder()Returns a mutable builder for constructing an instance of WorkspacePolicyViolationException. -
Methods inherited from class kotlin.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace -
Methods inherited from class com.anthropic.errors.BadRequestException
body, headers, statusCode -
Methods inherited from class com.anthropic.errors.AnthropicServiceException
apiMessage, errorCode, errorDetails, errorType, requestId, type, workspaceId -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
details
final WorkspacePolicyViolationErrorDetails details()
error.detailsof body.
-
toBuilder
WorkspacePolicyViolationException.Builder toBuilder()
-
builder
final static WorkspacePolicyViolationException.Builder builder()
Returns a mutable builder for constructing an instance of WorkspacePolicyViolationException.
The following fields are required:
.headers() .body()
-
-
-
-