Interface APIResponse.Errors

  • All Known Implementing Classes:
    APIResponseDTO.ErrorsDTO
    Enclosing interface:
    APIResponse<T>

    public static interface APIResponse.Errors
    Interface representing optional soft errors that might occur while requesting data from the remote service


    Please note that, as the remote service declares all of the properties to be optional, most of the methods are marked as Nullable. Methods returning collection-based values however will return an empty collection in case no corresponding data was received.

    • Method Detail

      • getInvalidFilters

        List<String> getInvalidFilters()
        Returns invalid filters passed to the route. Resolves to the values of the { errors.invalidFilters} JSON property.
        Returns:
        The invalidFilters property from the received JSON as list
      • getInvalidLanguage

        @Nullable
        String getInvalidLanguage()
        Returns invalid language or translation missing. Resolves to the value of the { errors.invalidLanguage} JSON property.
        Returns:
        The invalidLanguage property from the received JSON
      • getInvalidQueryParams

        List<String> getInvalidQueryParams()
        Returns invalid query params passed to the route. Resolves to the values of the { errors.invalidQueryParams} JSON property.
        Returns:
        The invalidQueryParams property from the received JSON as list