Package com.helger.commons.error
Interface IHasErrorField
-
- All Known Subinterfaces:
IError
- All Known Implementing Classes:
SingleError
public interface IHasErrorFieldBase interface for an object that has an error field.- Author:
- Philip Helger
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static Comparator<IHasErrorField>getComparatorErrorFieldName()StringgetErrorFieldName()default booleanhasErrorFieldName()default booleanhasErrorFieldName(String sErrorFieldName)Check if this error has the passed error field name.default booleanhasNoErrorFieldName()
-
-
-
Method Detail
-
getErrorFieldName
@Nullable String getErrorFieldName()
- Returns:
- The field for which the error occurred. May be
null. - Since:
- 8.5.0
-
hasErrorFieldName
default boolean hasErrorFieldName()
- Returns:
trueif a field name is present,falseotherwise- Since:
- 8.5.0
-
hasNoErrorFieldName
default boolean hasNoErrorFieldName()
- Returns:
trueif no field name is present,falseotherwise- Since:
- 8.5.0
-
hasErrorFieldName
default boolean hasErrorFieldName(@Nullable String sErrorFieldName)
Check if this error has the passed error field name.- Parameters:
sErrorFieldName- The error field name to check. May be null.- Returns:
trueif a field name is equal,falseotherwise- Since:
- 8.5.0
-
getComparatorErrorFieldName
@Nonnull static Comparator<IHasErrorField> getComparatorErrorFieldName()
-
-