java.lang.Object | |
↳ | com.atlassian.jira.util.SimpleErrorCollection |
Clients of @PublicApi
can expect
that programs compiled against a given version will remain binary compatible with later versions of the
@PublicApi
as per each product's API policy as long as the client does not implement/extend
@PublicApi
interfaces or classes (refer to each product's API policy for the exact
guarantee---usually binary compatibility is guaranteed at least across minor versions).
@PublicApi
interfaces and classes are not designed to be implemented or extended by clients,
we may perform certain types of binary-incompatible changes to these classes and interfaces, but these will not
affect well-behaved clients that do not extend/implement these types (in general, only classes and interfaces
annotated with @PublicSpi
are safe to extend/implement).
The most straightforward serializable implementation of ErrorCollection interface.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add a field-specific error message.
| |||||||||||
Add a field-specific error message.
| |||||||||||
Populate this ErrorCollection with general and field-specific errors.
| |||||||||||
Add error message relating to system state (not field-specific), and a reason.
| |||||||||||
Add error message relating to system state (not field-specific).
| |||||||||||
Append new error messages to those already collected.
| |||||||||||
Append new field-specific errors to those already collected.
| |||||||||||
Add a reason why the function has not been performed.
| |||||||||||
Add reasons why the function has not been performed.
| |||||||||||
Get all non field-specific error messages.
| |||||||||||
Get all field-specific errors.
| |||||||||||
Get error messages, then get rid of them.
| |||||||||||
A set of well known reasons why the function has not been performed.
| |||||||||||
Whether any errors (of any type - field-specific or otherwise) have been collected.
| |||||||||||
Populate this ErrorCollection with a new set of messages (existing errors are lost).
| |||||||||||
Set reasons why the function has not been performed.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.jira.util.ErrorCollection
|
Add a field-specific error message.
field | Field name, eg. "assignee" |
---|---|
message | Error message. |
Add a field-specific error message.
field | Field name, eg. "assignee" |
---|---|
message | Error message. |
reason | Reason for the error. |
Populate this ErrorCollection with general and field-specific errors.
errors | ErrorCollection whose errors/messages we obtain. |
---|
Add error message relating to system state (not field-specific), and a reason.
message | Error message. |
---|---|
reason | Reason for the error. |
Add error message relating to system state (not field-specific).
message | Error message. |
---|
Append new error messages to those already collected.
incomingMessages | Collection of error strings. |
---|
Append new field-specific errors to those already collected.
incomingErrors | of String: String pairs, eg. {"assignee": "Assignee is required"} |
---|
Add a reason why the function has not been performed. The reasons may be used by callers of services to set return codes etc. for example in REST services.
reason | a well known reasons why the function has not been performed. |
---|
Add reasons why the function has not been performed. The reasons may be used by callers of services to set return codes etc. for example in REST services.
reasons | a set of well known reasons why the function has not been performed. |
---|
Get all non field-specific error messages.
Get all field-specific errors.
Get error messages, then get rid of them.
A set of well known reasons why the function has not been performed. The reasons may be used by callers of services to set return codes etc. for example in REST services.
Whether any errors (of any type - field-specific or otherwise) have been collected.
Populate this ErrorCollection with a new set of messages (existing errors are lost).
errorMessages | List of error message String s.
|
---|
Set reasons why the function has not been performed. The reasons may be used by callers of services to set return codes etc. for example in REST services.
reasons | a set of well known reasons why the function has not been performed. |
---|