@Immutable public class ResourceError extends Object implements IResourceError
IResourceError interface. The
implementation is immutable.| Constructor and Description |
|---|
ResourceError(IResourceLocation aLocation,
IErrorLevel aErrorLevel,
IHasDisplayText aErrorText) |
ResourceError(IResourceLocation aLocation,
IErrorLevel aErrorLevel,
IHasDisplayText aErrorText,
Throwable aLinkedException) |
ResourceError(IResourceLocation aLocation,
IErrorLevel aErrorLevel,
String sErrorText) |
ResourceError(IResourceLocation aLocation,
IErrorLevel aErrorLevel,
String sErrorText,
Throwable aLinkedException) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getAsString(Locale aDisplayLocale)
Get the error as a string representation, including error ID, error
location, error text and the linked exception.
|
String |
getDisplayText(Locale aContentLocale) |
IErrorLevel |
getErrorLevel() |
Throwable |
getLinkedException() |
IResourceLocation |
getLocation() |
int |
hashCode() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waithasLinkedExceptiongetComparatorCollatingisEqualSevereThan, isError, isLessOrEqualSevereThan, isLessSevereThan, isMoreOrEqualSevereThan, isMoreSevereThan, isSuccessand, isFailure, orisNoErrorpublic ResourceError(@Nonnull IResourceLocation aLocation, @Nonnull IErrorLevel aErrorLevel, @Nonnull String sErrorText)
public ResourceError(@Nonnull IResourceLocation aLocation, @Nonnull IErrorLevel aErrorLevel, @Nonnull String sErrorText, @Nullable Throwable aLinkedException)
public ResourceError(@Nonnull IResourceLocation aLocation, @Nonnull IErrorLevel aErrorLevel, @Nonnull IHasDisplayText aErrorText)
public ResourceError(@Nonnull IResourceLocation aLocation, @Nonnull IErrorLevel aErrorLevel, @Nonnull IHasDisplayText aErrorText, @Nullable Throwable aLinkedException)
@Nonnull public final IResourceLocation getLocation()
getLocation in interface IResourceErrornull location of the error.@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 public final Throwable getLinkedException()
getLinkedException in interface IResourceErrornull if no such exception is
available.@Nonnull @OverrideOnDemand public String getAsString(@Nonnull Locale aDisplayLocale)
IResourceErrorgetAsString in interface IResourceErroraDisplayLocale - Locale to resolve the error textCopyright © 2014–2016 Philip Helger. All rights reserved.