Package com.helger.commons.error
Interface IHasErrorID
-
- All Known Subinterfaces:
IError
- All Known Implementing Classes:
SingleError
public interface IHasErrorIDInterface for objects having an error ID- Author:
- Philip Helger
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static Comparator<IHasErrorID>getComparatorErrorID()StringgetErrorID()default booleanhasErrorID()default booleanhasErrorID(String sErrorID)Check if this error has the passed error ID.default booleanhasNoErrorID()
-
-
-
Method Detail
-
hasErrorID
default boolean hasErrorID()
- Returns:
trueif an error ID is present,falseotherwise- See Also:
hasNoErrorID()
-
hasNoErrorID
default boolean hasNoErrorID()
- Returns:
trueif no error ID is present,falseotherwise- See Also:
hasErrorID()
-
hasErrorID
default boolean hasErrorID(@Nullable String sErrorID)
Check if this error has the passed error ID.- Parameters:
sErrorID- The error ID to check. May be null.- Returns:
trueif the error ID is equal,falseotherwise- Since:
- 8.5.0
-
getComparatorErrorID
@Nonnull static Comparator<IHasErrorID> getComparatorErrorID()
-
-