@PublicApi public class ValidateResponse extends Object
| Modifier and Type | Method and Description |
|---|---|
ValidateResponse |
addError(String field,
String error)
Returns a new ValidateResponse with the given field error added to it.
|
ValidateResponse |
addErrorMessage(String errorMessage)
Returns a new ValidateResponse with the given error added to it.
|
static ValidateResponse |
create()
Creates a new ValidateResponse.
|
ErrorCollection |
toErrorCollection()
Transforms the errors into a
ErrorCollection. |
public static ValidateResponse create()
public ValidateResponse addError(String field, String error)
field - a field nameerror - an field errorpublic ValidateResponse addErrorMessage(String errorMessage)
errorMessage - an error messagepublic ErrorCollection toErrorCollection()
ErrorCollection.Copyright © 2002-2018 Atlassian. All Rights Reserved.