Interface IErrorTextProvider

  • All Known Implementing Classes:
    ErrorTextProvider
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface IErrorTextProvider
    Interface for converting an IError to a printable representation.
    Since:
    8.5.1
    Author:
    Philip Helger
    • Method Detail

      • getErrorText

        @Nonnull
        String getErrorText​(@Nonnull
                            IError aError,
                            @Nonnull
                            Locale aContentLocale)
        Get the provided error as a String
        Parameters:
        aError - The error to be converted. May not be null.
        aContentLocale - The content locale to be used. May not be null.
        Returns:
        A non-null String.