Interface IHasErrorLevel

    • Method Detail

      • getErrorLevel

        @Nonnull
        IErrorLevel getErrorLevel()
        Returns:
        The error level of this object. May not be null.
      • hasErrorLevel

        default boolean hasErrorLevel​(@Nullable
                                      IErrorLevel aErrorLevel)
        Check if this object has the provided error level.
        Parameters:
        aErrorLevel - The error level to check. May be null.
        Returns:
        true if getErrorLevel() and the passed error level are equal, false otherwise.
      • isSuccess

        default boolean isSuccess()
        Specified by:
        isSuccess in interface ISuccessIndicator
        Returns:
        true on success and false on failure.
      • isFailure

        default boolean isFailure()
        Specified by:
        isFailure in interface ISuccessIndicator
        Returns:
        true on failure and false on success.