public interface IResourceError extends IHasDisplayText, IErrorBase<IResourceError>
| Modifier and Type | Method and Description |
|---|---|
String |
getAsString(Locale aDisplayLocale)
Get the error as a string representation, including error ID, error
location, error text and the linked exception.
|
Throwable |
getLinkedException() |
IResourceLocation |
getLocation() |
default boolean |
hasLinkedException() |
getComparatorCollating, getDisplayTextisEqualSevereThan, isError, isLessOrEqualSevereThan, isLessSevereThan, isMoreOrEqualSevereThan, isMoreSevereThan, isSuccessgetErrorLeveland, isFailure, orisNoError@Nonnull IResourceLocation getLocation()
null location of the error.@Nullable Throwable getLinkedException()
null if no such exception is
available.default boolean hasLinkedException()
true if a linked exception is present,
false if not.@Nonnull @Nonempty String getAsString(@Nonnull Locale aDisplayLocale)
aDisplayLocale - Locale to resolve the error textCopyright © 2014–2016 Philip Helger. All rights reserved.