public static class ErrorCollection.Builder extends Object
Modifier and Type | Method and Description |
---|---|
ErrorCollection.Builder |
addError(String field,
String errorKey,
String... params) |
ErrorCollection.Builder |
addErrorCollection(ErrorCollection errorCollection) |
ErrorCollection.Builder |
addErrorMessage(String errorMessage) |
ErrorCollection |
build() |
static ErrorCollection.Builder |
newBuilder() |
static ErrorCollection.Builder |
newBuilder(Collection<ValidationError> errors) |
static ErrorCollection.Builder |
newBuilder(ErrorCollection errorCollection) |
static ErrorCollection.Builder |
newBuilder(Set<String> errorMessages) |
static ErrorCollection.Builder |
newBuilder(ValidationError... errors) |
public static ErrorCollection.Builder newBuilder()
public static ErrorCollection.Builder newBuilder(ValidationError... errors)
public static ErrorCollection.Builder newBuilder(Set<String> errorMessages)
public static ErrorCollection.Builder newBuilder(Collection<ValidationError> errors)
public static ErrorCollection.Builder newBuilder(ErrorCollection errorCollection)
public ErrorCollection.Builder addErrorCollection(ErrorCollection errorCollection)
public ErrorCollection.Builder addErrorMessage(String errorMessage)
public ErrorCollection.Builder addError(String field, String errorKey, String... params)
public ErrorCollection build()
Copyright © 2002-2024 Atlassian. All Rights Reserved.