Skip to content

Give clients much more detailed errors #1168

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

Merged
merged 3 commits into from
Feb 26, 2018
Merged

Give clients much more detailed errors #1168

merged 3 commits into from
Feb 26, 2018

Conversation

SUPERCILEX
Copy link
Collaborator

Fixes #526

DEVELOPER_ERROR
})
@Retention(RetentionPolicy.SOURCE)
public @interface All {}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really happy with this name, any ideas?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe Code?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM, ErrorCodes.Anything feels weird, but yours makes more sense.

@@ -1,33 +1,46 @@
package com.firebase.ui.auth.data.model;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we move this to the root package or leave it as is?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is LIBRARY_GROUP only that's not a breaking change, so if you want to move it to the root package that SGTM.

Signed-off-by: Alex Saveau <[email protected]>

void onFailure();
void onFailure(@NonNull Exception e);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible that anyone was relying on this interface? If so this is a breaking change .... if this is meant to be internal let's annotate it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so, or at least, I know we've broken it before without notice. I'll annotate it.

@samtstern
Copy link
Contributor

@SUPERCILEX thanks! Just left a few small comments.

@samtstern samtstern added this to the 3.2.2 milestone Feb 26, 2018
Signed-off-by: Alex Saveau <[email protected]>
@samtstern samtstern merged commit 299788e into firebase:version-3.2.2-dev Feb 26, 2018
@SUPERCILEX SUPERCILEX deleted the exceptions branch February 26, 2018 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants