@PublicApi public class ErrorMessageContainer extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ErrorMessageContainer.Context |
static class |
ErrorMessageContainer.ErrorMessage |
public static ErrorMessageContainer create()
public static ErrorMessageContainer createWithNoContext(String i18nKey, Object... parameters)
public static ErrorMessageContainer.ErrorMessage createErrorMessage(String i18nKey, Object... parameters)
public static ErrorMessageContainer.ErrorMessage createWithAdditionalMessage(String i18nKey, ErrorMessageContainer.ErrorMessage additionalMessage, Object... parameters)
public ErrorMessageContainer withError(String context, String i18nKey, Object... parameters)
public ErrorMessageContainer withError(String context, ErrorMessageContainer.ErrorMessage errorMessage)
public ErrorMessageContainer withErrors(ErrorMessageContainer errorMessageContainer)
public ErrorMessageContainer withErrors(Map<ErrorMessageContainer.Context,Collection<ErrorMessageContainer.ErrorMessage>> errorMessages)
public ErrorMessageContainer withGlobalError(String i18nKey, Object... parameters)
public ErrorMessageContainer withGlobalError(String i18nKey, ErrorMessageContainer.ErrorMessage additionalMessage, Object... parameters)
public ErrorMessageContainer.Context createContext(String context)
public ErrorMessageContainer.Context createContext()
public boolean hasErrorMessages()
public Map<ErrorMessageContainer.Context,Collection<ErrorMessageContainer.ErrorMessage>> getErrorMap()
public Collection<ErrorMessageContainer.ErrorMessage> getErrors(String context)
public Collection<ErrorMessageContainer.ErrorMessage> getGlobalErrors()
public Map<ErrorMessageContainer.Context,Collection<String>> getTranslatedErrorMessages()
public String convertEntryToString(Map.Entry<ErrorMessageContainer.Context,Collection<ErrorMessageContainer.ErrorMessage>> mapEntry)
Copyright © 2024 Atlassian. All rights reserved.