java.lang.Object | |
↳ | com.atlassian.jira.util.ErrorCollections |
@Internal
or @PublicApi
.
Static factory methods for creating simple ErrorCollection
instances.
All instances returned by methods in this class are Serializable
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new error collection with contents copied from the supplied argument.
| |||||||||||
Creates a new instance of error collection that contains the specified message and reason.
| |||||||||||
Creates a new instance of error collection that contains the
message related to the field because of reason . | |||||||||||
Creates a new instance of empty error collection.
| |||||||||||
Creates an error collection containing all errors from given error collections
| |||||||||||
Creates a new instance of error collection that indicates there was a validation error for the specified field.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object |
Creates a new error collection with contents copied from the supplied argument.
errorCollection | error collection to copy |
---|
Creates a new instance of error collection that contains the specified message and reason.
errorMessage | error message to be contained in the returned collection |
---|---|
reason | reason for the message |
Creates a new instance of error collection that contains the message
related to the field
because of reason
.
field | field that the error message will pertain to |
---|---|
message | error message related to the field |
reason | reason for error |
Creates a new instance of empty error collection.
Creates an error collection containing all errors from given error collections
errorCollections | an array of error collections to join |
---|
Creates a new instance of error collection that indicates there was a validation error for the specified field.
This is equivalent to calling create(String, String, com.atlassian.jira.util.ErrorCollection.Reason)
with the same field and message arguments and reason VALIDATION_FAILED
.
field | field that failed validation |
---|---|
message | detailed error message |
VALIDATION_FAILED