Modifier and Type | Method and Description |
---|---|
Set<ErrorCollection.Reason> |
MockAction.getReasons() |
Modifier and Type | Method and Description |
---|---|
void |
MockAction.addError(String field,
String message,
ErrorCollection.Reason reason) |
void |
MockAction.addErrorMessage(String message,
ErrorCollection.Reason reason) |
void |
MockAction.addReason(ErrorCollection.Reason reason) |
Modifier and Type | Method and Description |
---|---|
void |
MockAction.addReasons(Set<ErrorCollection.Reason> reasons) |
void |
MockAction.setReasons(Set<ErrorCollection.Reason> reasons) |
Modifier and Type | Method and Description |
---|---|
ErrorMatcher |
ErrorMatcher.addError(String field,
String message,
ErrorCollection.Reason reason) |
ErrorMatcher |
ErrorMatcher.addErrorMessage(String message,
ErrorCollection.Reason reason) |
ErrorMatcher |
ErrorMatcher.addReason(ErrorCollection.Reason reason) |
static <T> ServiceOutcomeImpl<T> |
ServiceOutcomeImpl.error(String errorMessage,
ErrorCollection.Reason reason)
Convenience method that returns a new ServiceOutcomeImpl instance containing the provided error message, and no
return value.
|
static ErrorMatcher |
ServiceOutcomeMatchers.errorMatcher(String key,
String value,
ErrorCollection.Reason reason) |
Modifier and Type | Method and Description |
---|---|
ErrorMatcher |
ErrorMatcher.addReasons(Set<ErrorCollection.Reason> reasons) |
ErrorMatcher |
ErrorMatcher.setReasons(Set<ErrorCollection.Reason> reasons) |
Modifier and Type | Method and Description |
---|---|
DataImportService.ImportResult.Builder |
DataImportService.ImportResult.Builder.addErrorMessage(String message,
ErrorCollection.Reason reason) |
Modifier and Type | Method and Description |
---|---|
protected ErrorCollection |
DefaultProjectService.makeErrorCollection(ApplicationUser user,
String i18nKey,
ErrorCollection.Reason reason,
String... params)
Creates a new ErrorCollection instance for a single error message.
|
Modifier and Type | Method and Description |
---|---|
io.atlassian.fugue.Option<Pair<String,ErrorCollection.Reason>> |
DefaultConstantsManager.validateName(String name,
io.atlassian.fugue.Option<IssueType> issueTypeToUpdate) |
io.atlassian.fugue.Option<Pair<String,ErrorCollection.Reason>> |
ConstantsManager.validateName(String name,
io.atlassian.fugue.Option<IssueType> issueTypeToUpdate)
Validates the name of issue type.
|
Modifier and Type | Method and Description |
---|---|
<T> ServiceOutcome<T> |
DefaultIssueTypeSchemeService.errorCase(String msg,
ErrorCollection.Reason reason) |
<T> ServiceOutcome<T> |
IssueTypeSchemeService.errorCase(String msg,
ErrorCollection.Reason reason)
Creates a failed service outcome with the specified error
msg and reason . |
Modifier and Type | Method and Description |
---|---|
ErrorCollection.Reason |
AttachmentError.getReason() |
Constructor and Description |
---|
AttachmentError(String logMessage,
String localizedMessage,
String filename,
ErrorCollection.Reason reason) |
AttachmentError(String logMessage,
String localizedMessage,
String filename,
io.atlassian.fugue.Option<Exception> exception,
ErrorCollection.Reason reason) |
Modifier and Type | Method and Description |
---|---|
static ErrorCollectionMatcher |
ErrorCollectionMatcher.hasError(String fieldName,
String errorMessage,
ErrorCollection.Reason reason) |
static ErrorCollectionMatcher |
ErrorCollectionMatcher.hasErrorMessage(String errorMessage,
ErrorCollection.Reason reason) |
static ErrorCollectionMatcher |
ErrorCollectionMatcher.hasOnlyErrorMessage(String errorMessage,
ErrorCollection.Reason reason) |
Modifier and Type | Method and Description |
---|---|
io.atlassian.fugue.Option<Pair<String,ErrorCollection.Reason>> |
MockConstantsManager.validateName(String name,
io.atlassian.fugue.Option<IssueType> issueType) |
Modifier and Type | Method and Description |
---|---|
ErrorCollection |
ErrorCollection.reason(ErrorCollection.Reason reason) |
Modifier and Type | Method and Description |
---|---|
ErrorCollection |
ErrorCollectionFactory.of(ErrorCollection.Reason reason,
String message) |
Modifier and Type | Method and Description |
---|---|
static ErrorCollection.Reason |
ErrorCollection.Reason.getWorstReason(Collection<ErrorCollection.Reason> reasons) |
static ErrorCollection.Reason |
ErrorCollection.Reason.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ErrorCollection.Reason[] |
ErrorCollection.Reason.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
Set<ErrorCollection.Reason> |
ErrorCollection.getReasons()
A set of well known reasons why the function has not been performed.
|
Set<ErrorCollection.Reason> |
SimpleErrorCollection.getReasons() |
Modifier and Type | Method and Description |
---|---|
void |
ErrorCollection.addError(String field,
String message,
ErrorCollection.Reason reason)
Add a field-specific error message.
|
void |
SimpleErrorCollection.addError(String field,
String message,
ErrorCollection.Reason reason) |
void |
ErrorCollection.addErrorMessage(String message,
ErrorCollection.Reason reason)
Add error message relating to system state (not field-specific), and a reason.
|
void |
SimpleErrorCollection.addErrorMessage(String message,
ErrorCollection.Reason reason) |
void |
ErrorCollection.addReason(ErrorCollection.Reason reason)
Add a reason why the function has not been performed.
|
void |
SimpleErrorCollection.addReason(ErrorCollection.Reason reason) |
static ErrorCollection |
ErrorCollections.create(String errorMessage,
ErrorCollection.Reason reason)
Creates a new instance of error collection that contains the specified message and reason.
|
static ErrorCollection |
ErrorCollections.create(String field,
String message,
ErrorCollection.Reason reason)
Creates a new instance of error collection that contains the
message related to the field because of reason . |
Modifier and Type | Method and Description |
---|---|
void |
ErrorCollection.addReasons(Set<ErrorCollection.Reason> reasons)
Add reasons why the function has not been performed.
|
void |
SimpleErrorCollection.addReasons(Set<ErrorCollection.Reason> reasons) |
static ErrorCollection.Reason |
ErrorCollection.Reason.getWorstReason(Collection<ErrorCollection.Reason> reasons) |
void |
ErrorCollection.setReasons(Set<ErrorCollection.Reason> reasons)
Set reasons why the function has not been performed.
|
void |
SimpleErrorCollection.setReasons(Set<ErrorCollection.Reason> reasons) |
Constructor and Description |
---|
SimpleErrorCollection(String errorMsg,
ErrorCollection.Reason reason) |
Constructor and Description |
---|
SimpleErrorCollection(List<String> errorMessages,
Set<ErrorCollection.Reason> reasons) |
Modifier and Type | Method and Description |
---|---|
Set<ErrorCollection.Reason> |
JiraWebActionSupport.getReasons() |
Modifier and Type | Method and Description |
---|---|
void |
JiraWebActionSupport.addError(String field,
String message,
ErrorCollection.Reason reason) |
void |
JiraWebActionSupport.addErrorMessage(String message,
ErrorCollection.Reason reason) |
void |
JiraWebActionSupport.addReason(ErrorCollection.Reason reason) |
Modifier and Type | Method and Description |
---|---|
void |
JiraWebActionSupport.addReasons(Set<ErrorCollection.Reason> reasons) |
void |
JiraWebActionSupport.setReasons(Set<ErrorCollection.Reason> reasons) |
Copyright © 2002-2022 Atlassian. All Rights Reserved.