-
Notifications
You must be signed in to change notification settings - Fork 615
Propagating the exceptions to the clients. #856
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…into fis-exceptions
…into fis-exceptions
|
||
@Override | ||
public boolean onException(PersistedFidEntry persistedFidEntry, Exception exception) { | ||
if (persistedFidEntry.isErrored()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when would it be the case that we'd get an exception without the persistedFidEntry being in the error state?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interrupted Exception
Exception thrown while persisting.
Thread failure
new FirebaseInstallationsException( | ||
"Failed to update client side cache.", | ||
FirebaseInstallationsException.Status.CLIENT_ERROR)); | ||
taskCompletionSource.trySetException(exception); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
given this is the same in each of the listener impls so far we could move it into a default interface method
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
error: [NoStaticOrDefaultMethodsInInterfaces] Avoid static/default methods in interfaces: We currently desugar SDKs with retrolambda which has limited support for those.
Default methods require API level 24. Current min is 14
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, sad! I thought we had moved past retrolambda
…into fis-exceptions
…into fis-exceptions
…into fis-exceptions
…into fis-exceptions
…into fis-exceptions
/test check-changed |
new FirebaseInstallationsException( | ||
"Failed to update client side cache.", | ||
FirebaseInstallationsException.Status.CLIENT_ERROR)); | ||
taskCompletionSource.trySetException(exception); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, sad! I thought we had moved past retrolambda
firebase-installations/src/main/java/com/google/firebase/installations/StateListener.java
Show resolved
Hide resolved
…into fis-exceptions
/test check-changed |
/test api-information |
/test new-smoke-tests |
…into fis-exceptions
…into fis-exceptions
/retest |
/test check-changed |
/retest |
* Simplifying FirebaseInstallations class by adding listeners. * Addressing ciaran's comments to return same token if multiple getAuthToken() calls are triggered simultaneously. * Cleaning doRegistration method. * Fixing FISClient to correctly parse expiration timestamp. (#848) * Updating getAuthToken to return creation timestamp (#884) * Propagating the exceptions to the clients. (#856)
* Implemneting retry for FIS Client. * Simplifying FirebaseInstallations class by adding listeners. (#847) * Simplifying FirebaseInstallations class by adding listeners. * Addressing ciaran's comments to return same token if multiple getAuthToken() calls are triggered simultaneously. * Cleaning doRegistration method. * Fixing FISClient to correctly parse expiration timestamp. (#848) * Updating getAuthToken to return creation timestamp (#884) * Propagating the exceptions to the clients. (#856) * Addressing ciaran's comments. * Merge conflicts. * Nit fixes * Fixing verify format issue.
* Fixing FISClient to correctly parse expiration timestamp. (#848) * Updating getAuthToken to return creation timestamp (#884) * Propagating the exceptions to the clients. (#856) * Extract FID from FIS createInstallation response (#888) * Addressing Rayo's comment: Rename PersistedFidEntry to (#899) * Implementing retry once for FIS Client. (#895) * Simplifying FirebaseInstallations class by adding listeners. (#847) * Fixing FISClient to correctly parse expiration timestamp. (#848) * Updating getAuthToken to return creation timestamp (#884) * Propagating the exceptions to the clients. (#856)
No description provided.