use of io.joynr.provider.Deferred in project joynr by bmwcarit.
the class SubscriptionTestsProviderImpl method getAttributeWithProviderRuntimeException.
@Override
public Promise<Deferred<Integer>> getAttributeWithProviderRuntimeException() {
Deferred<Integer> deferred = new Deferred<Integer>();
ProviderRuntimeException error = new ProviderRuntimeException(MESSAGE_PROVIDERRUNTIMEEXCEPTION);
deferred.reject(error);
return new Promise<Deferred<Integer>>(deferred);
}
Aggregations