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 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:
        true if a field name is present, false otherwise
        Since:
        8.5.0
      • hasNoErrorFieldName

        default boolean hasNoErrorFieldName()
        Returns:
        true if no field name is present, false otherwise
        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:
        true if a field name is equal, false otherwise
        Since:
        8.5.0