public abstract static class BadRequest.BadRequestFieldViolation extends Object
Each violation provides details about what specific field or aspect of the request was invalid and how the client can fix it.
| Modifier and Type | Class and Description |
|---|---|
static class |
BadRequest.BadRequestFieldViolation.Builder
Builder for constructing BadRequestFieldViolation instances.
|
| Constructor and Description |
|---|
BadRequestFieldViolation() |
| Modifier and Type | Method and Description |
|---|---|
static BadRequest.BadRequestFieldViolation.Builder |
builder()
Creates a new builder for constructing BadRequestFieldViolation instances.
|
abstract String |
description()
A description of why the request element is bad.
|
abstract String |
field()
A path leading to a field in the request body.
|
public abstract String field()
This field identifies the specific location of the violation within the request structure. The path format depends on the request format but typically follows a hierarchical structure.
Examples of field paths:
This path helps clients quickly locate and fix the problematic field in their request.
public abstract String description()
This field provides a human-readable explanation of what's wrong with the field and how to fix it. The description should be clear enough for developers to understand and resolve the issue.
Examples of field violation descriptions:
public static BadRequest.BadRequestFieldViolation.Builder builder()
Copyright © 2026. All rights reserved.