Interface IHasErrorID

All Known Subinterfaces:
IError
All Known Implementing Classes:
SingleError

public interface IHasErrorID
Interface for objects having an error ID
Author:
Philip Helger
  • Method Details

    • getErrorID

      @Nullable String getErrorID()
      Returns:
      The error ID. May be null.
    • hasErrorID

      default boolean hasErrorID()
      Returns:
      true if an error ID is present, false otherwise
      See Also:
    • hasNoErrorID

      default boolean hasNoErrorID()
      Returns:
      true if no error ID is present, false otherwise
      See Also:
    • 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:
      true if the error ID is equal, false otherwise
      Since:
      8.5.0
    • getComparatorErrorID

      @Nonnull static Comparator<IHasErrorID> getComparatorErrorID()