public abstract static class PreconditionFailure.PreconditionFailureViolation extends Object
Each violation provides details about what specific precondition failed and how the client can resolve the issue.
| Modifier and Type | Class and Description |
|---|---|
static class |
PreconditionFailure.PreconditionFailureViolation.Builder
Builder for constructing PreconditionFailureViolation instances.
|
| Constructor and Description |
|---|
PreconditionFailureViolation() |
| Modifier and Type | Method and Description |
|---|---|
static PreconditionFailure.PreconditionFailureViolation.Builder |
builder()
Creates a new builder for constructing PreconditionFailureViolation instances.
|
abstract String |
description()
A description of how the precondition failed.
|
abstract String |
subject()
The subject, relative to the type, that failed.
|
abstract String |
type()
The type of PreconditionFailure.
|
public abstract String type()
This field categorizes the type of precondition that failed. Examples might include:
public abstract String subject()
This field identifies the specific entity or resource that failed the precondition check. The interpretation depends on the type of precondition failure.
Examples:
public abstract String description()
Examples of precondition failure descriptions:
public static PreconditionFailure.PreconditionFailureViolation.Builder builder()
Copyright © 2026. All rights reserved.