@Component public class ErrorCollectionFactory extends Object
ErrorCollection
instances.Modifier and Type | Method and Description |
---|---|
ErrorCollection |
of(Collection<String> messages)
Returns a new ErrorCollection containing a list of error messages.
|
ErrorCollection |
of(ErrorCollection.Reason reason,
String message) |
ErrorCollection |
of(ErrorCollection errorCollection)
Returns a new ErrorCollection containing all the errors contained in the input error collection.
|
ErrorCollection |
of(String... messages)
Returns a new ErrorCollection containing a list of error messages.
|
public ErrorCollection of(ErrorCollection.Reason reason, String message)
reason
- reasonmessage
- error messagespublic ErrorCollection of(String... messages)
messages
- an array of Strings containing error messagespublic ErrorCollection of(Collection<String> messages)
messages
- an Iterable of Strings containing error messagespublic ErrorCollection of(ErrorCollection errorCollection)
errorCollection
- a com.atlassian.jira.util.ErrorCollectionCopyright © 2002-2015 Atlassian. All Rights Reserved.