SingleError instead@Immutable @Deprecated public class SingleError extends Object implements IError
IError.
| Constructor and Description |
|---|
SingleError(IErrorLevel aErrorLevel,
String sErrorText)
Deprecated.
|
SingleError(IErrorLevel aErrorLevel,
String sErrorFieldName,
String sErrorText)
Deprecated.
|
SingleError(String sErrorID,
IErrorLevel aErrorLevel,
String sErrorFieldName,
String sErrorText)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static SingleError |
createError(String sErrorText)
Deprecated.
|
static SingleError |
createError(String sErrorFieldName,
String sErrorText)
Deprecated.
|
static SingleError |
createError(String sErrorID,
String sErrorFieldName,
String sErrorText)
Deprecated.
|
static SingleError |
createInfo(String sErrorText)
Deprecated.
|
static SingleError |
createInfo(String sErrorFieldName,
String sErrorText)
Deprecated.
|
static SingleError |
createInfo(String sErrorID,
String sErrorFieldName,
String sErrorText)
Deprecated.
|
static SingleError |
createSuccess(String sErrorText)
Deprecated.
|
static SingleError |
createSuccess(String sErrorFieldName,
String sErrorText)
Deprecated.
|
static SingleError |
createSuccess(String sErrorID,
String sErrorFieldName,
String sErrorText)
Deprecated.
|
static SingleError |
createWarning(String sErrorText)
Deprecated.
|
static SingleError |
createWarning(String sErrorFieldName,
String sErrorText)
Deprecated.
|
static SingleError |
createWarning(String sErrorID,
String sErrorFieldName,
String sErrorText)
Deprecated.
|
boolean |
equals(Object o)
Deprecated.
|
String |
getErrorFieldName()
Deprecated.
|
String |
getErrorID()
Deprecated.
|
IErrorLevel |
getErrorLevel()
Deprecated.
|
String |
getErrorText()
Deprecated.
|
String |
getErrorText(Locale aContentLocale)
Deprecated.
Get the error message of this error.
|
IErrorLocation |
getLocation()
Deprecated.
|
int |
hashCode()
Deprecated.
|
String |
toString()
Deprecated.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetResourceLocationgetAsString, getErrorLocation, getErrorTexts, getLinkedException, getLinkedExceptionCause, getLinkedExceptionMessage, getLinkedExceptionStackTrace, hasErrorLocation, hasLinkedExceptionisEqualSevereThan, isLessOrEqualSevereThan, isLessSevereThan, isMoreOrEqualSevereThan, isMoreSevereThanhasErrorLevel, isError, isFailure, isNoError, isSuccessand, orthisAsTgetComparatorErrorID, hasErrorID, hasErrorID, hasNoErrorIDgetComparatorErrorFieldName, getErrorField, hasErrorField, hasErrorFieldName, hasErrorFieldName, hasNoErrorFieldNamepublic SingleError(@Nonnull IErrorLevel aErrorLevel, @Nonnull @Nonempty String sErrorText)
public SingleError(@Nonnull IErrorLevel aErrorLevel, @Nullable String sErrorFieldName, @Nonnull @Nonempty String sErrorText)
@Nullable public String getErrorID()
IErrorgetErrorID in interface IHasErrorIDgetErrorID in interface IErrornull.@Nonnull public IErrorLevel getErrorLevel()
getErrorLevel in interface IHasErrorLevelnull.@Nullable public String getErrorFieldName()
getErrorFieldName in interface IHasErrorFieldgetErrorFieldName in interface IErrornull.@Nonnull public String getErrorText()
null nor empty.@Nullable public String getErrorText(@Nonnull Locale aContentLocale)
IErrorgetErrorText in interface IErroraContentLocale - The locale to be used in case the error text is available in
multiple languages.null in case no
error text is available or if the passed Locale is not supported.IError.getErrorTexts()@Nonnull public IErrorLocation getLocation()
@Nonnull public static SingleError createSuccess(@Nonnull @Nonempty String sErrorText)
@Nonnull public static SingleError createSuccess(@Nullable String sErrorFieldName, @Nonnull @Nonempty String sErrorText)
@Nonnull public static SingleError createSuccess(@Nullable String sErrorID, @Nullable String sErrorFieldName, @Nonnull @Nonempty String sErrorText)
@Nonnull public static SingleError createInfo(@Nonnull @Nonempty String sErrorText)
@Nonnull public static SingleError createInfo(@Nullable String sErrorFieldName, @Nonnull @Nonempty String sErrorText)
@Nonnull public static SingleError createInfo(@Nullable String sErrorID, @Nullable String sErrorFieldName, @Nonnull @Nonempty String sErrorText)
@Nonnull public static SingleError createWarning(@Nonnull @Nonempty String sErrorText)
@Nonnull public static SingleError createWarning(@Nullable String sErrorFieldName, @Nonnull @Nonempty String sErrorText)
@Nonnull public static SingleError createWarning(@Nullable String sErrorID, @Nullable String sErrorFieldName, @Nonnull @Nonempty String sErrorText)
@Nonnull public static SingleError createError(@Nonnull @Nonempty String sErrorText)
@Nonnull public static SingleError createError(@Nullable String sErrorFieldName, @Nonnull @Nonempty String sErrorText)
Copyright © 2014–2016 Philip Helger. All rights reserved.