com.atlassian.jira.rest.v1.model.errors
Class ErrorCollection.Builder
java.lang.Object
com.atlassian.jira.rest.v1.model.errors.ErrorCollection.Builder
- Enclosing class:
- ErrorCollection
public static class ErrorCollection.Builder
- extends Object
Builder used to create a new immutable error collection.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
newBuilder
public static ErrorCollection.Builder newBuilder()
newBuilder
public static ErrorCollection.Builder newBuilder(ValidationError... errors)
newBuilder
public static ErrorCollection.Builder newBuilder(Set<String> errorMessages)
newBuilder
public static ErrorCollection.Builder newBuilder(Collection<ValidationError> errors)
newBuilder
public static ErrorCollection.Builder newBuilder(ErrorCollection errorCollection)
addErrorCollection
public ErrorCollection.Builder addErrorCollection(ErrorCollection errorCollection)
addErrorMessage
public ErrorCollection.Builder addErrorMessage(String errorMessage)
addError
public ErrorCollection.Builder addError(String field,
String errorKey,
String... params)
build
public ErrorCollection build()
Copyright © 2002-2012 Atlassian. All Rights Reserved.