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 asNullable
. Methods returning collection-based values however will return an empty collection in case no corresponding data was received.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<String>
getInvalidFilters()
Returns invalid filters passed to the route.String
getInvalidLanguage()
Returns invalid language or translation missing.List<String>
getInvalidQueryParams()
Returns invalid query params passed to the route.
-
-
-
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
-
-