Package io.ably.lib.http
Class BasePaginatedQuery.ResultRequest.Failed<T>
- java.lang.Object
-
- io.ably.lib.http.BasePaginatedQuery.ResultRequest<T>
-
- io.ably.lib.http.BasePaginatedQuery.ResultRequest.Failed<T>
-
- Type Parameters:
T-
- Enclosing class:
- BasePaginatedQuery.ResultRequest<T>
public static class BasePaginatedQuery.ResultRequest.Failed<T> extends BasePaginatedQuery.ResultRequest<T>
A ResultRequest that has already failed due to a previous condition. Useful when a method must return a ResultRequest but fails before it can make the "real" one. Such errors are reported as thrown AblyExceptions in sync scenarios, and as Callback.onError calls in async ones. This class helps converting from plain exceptions to cover the async case too.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.ably.lib.http.BasePaginatedQuery.ResultRequest
BasePaginatedQuery.ResultRequest.Failed<T>
-
-
Constructor Summary
Constructors Constructor Description Failed(AblyException reason)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidasync(Callback<AsyncPaginatedResult<T>> callback)PaginatedResult<T>sync()
-
-
-
Constructor Detail
-
Failed
public Failed(AblyException reason)
-
-
Method Detail
-
sync
public PaginatedResult<T> sync() throws AblyException
- Overrides:
syncin classBasePaginatedQuery.ResultRequest<T>- Throws:
AblyException
-
async
public void async(Callback<AsyncPaginatedResult<T>> callback)
- Overrides:
asyncin classBasePaginatedQuery.ResultRequest<T>
-
-