Package com.helger.commons.error
Interface IHasErrorField
- All Known Subinterfaces:
IError
- All Known Implementing Classes:
SingleError
public interface IHasErrorField
Base interface for an object that has an error field.
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptionstatic Comparator<IHasErrorField> default booleandefault booleanhasErrorFieldName(String sErrorFieldName) Check if this error has the passed error field name.default boolean
-
Method Details
-
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
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
-