SingleError instead@Immutable @Deprecated public class ResourceError extends Object implements IResourceError
IResourceError interface. The
implementation is immutable.| Constructor and Description |
|---|
ResourceError(IErrorLocation aLocation,
IErrorLevel aErrorLevel,
IHasDisplayText aErrorText)
Deprecated.
|
ResourceError(IErrorLocation aLocation,
IErrorLevel aErrorLevel,
IHasDisplayText aErrorText,
Throwable aLinkedException)
Deprecated.
|
ResourceError(IErrorLocation aLocation,
IErrorLevel aErrorLevel,
String sErrorText)
Deprecated.
|
ResourceError(IErrorLocation aLocation,
IErrorLevel aErrorLevel,
String sErrorText,
Throwable aLinkedException)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static IResourceError |
createAndConvert(IError aError)
Deprecated.
|
boolean |
equals(Object o)
Deprecated.
|
String |
getDisplayText(Locale aContentLocale)
Deprecated.
|
IErrorLevel |
getErrorLevel()
Deprecated.
|
IErrorLocation |
getErrorLocation()
Deprecated.
|
String |
getErrorText(Locale aContentLocale)
Deprecated.
Get the error message of this error.
|
Throwable |
getLinkedException()
Deprecated.
|
int |
hashCode()
Deprecated.
|
String |
toString()
Deprecated.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetLocationgetAsHasText, getComparatorCollatinggetAsString, getErrorFieldName, getErrorID, getErrorTexts, getLinkedExceptionCause, getLinkedExceptionMessage, getLinkedExceptionStackTrace, hasErrorLocation, hasLinkedExceptionisEqualSevereThan, isLessOrEqualSevereThan, isLessSevereThan, isMoreOrEqualSevereThan, isMoreSevereThanhasErrorLevel, isError, isFailure, isNoError, isSuccessand, orthisAsTgetComparatorErrorID, hasErrorID, hasErrorID, hasNoErrorIDgetComparatorErrorFieldName, getErrorField, hasErrorField, hasErrorFieldName, hasErrorFieldName, hasNoErrorFieldNamepublic ResourceError(@Nonnull IErrorLocation aLocation, @Nonnull IErrorLevel aErrorLevel, @Nonnull String sErrorText)
public ResourceError(@Nonnull IErrorLocation aLocation, @Nonnull IErrorLevel aErrorLevel, @Nonnull String sErrorText, @Nullable Throwable aLinkedException)
public ResourceError(@Nonnull IErrorLocation aLocation, @Nonnull IErrorLevel aErrorLevel, @Nonnull IHasDisplayText aErrorText)
public ResourceError(@Nonnull IErrorLocation aLocation, @Nonnull IErrorLevel aErrorLevel, @Nonnull IHasDisplayText aErrorText, @Nullable Throwable aLinkedException)
@Nonnull public final IErrorLocation getErrorLocation()
getErrorLocation in interface IErrornull location of the error. Use
ErrorLocation.NO_LOCATION to indicate no location is
available.IError.hasErrorLocation()@Nonnull public final IErrorLevel getErrorLevel()
getErrorLevel in interface IHasErrorLevelnull.@Nullable @OverrideOnDemand public String getDisplayText(@Nonnull Locale aContentLocale)
getDisplayText in interface IHasDisplayTextaContentLocale - The locale to be used for resolving. May not be null.null if the text could not be resolved in the passed
locale.@Nullable @OverrideOnDemand 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()@Nullable public final Throwable getLinkedException()
getLinkedException in interface IErrornull if no such exception is
available.IError.hasLinkedException(),
IError.getLinkedExceptionMessage(),
IError.getLinkedExceptionStackTrace(),
IError.getLinkedExceptionCause()@Nonnull public static IResourceError createAndConvert(@Nonnull IError aError)
Copyright © 2014–2016 Philip Helger. All rights reserved.