firebase-admin-java icon indicating copy to clipboard operation
firebase-admin-java copied to clipboard

[FR] Open up FirebaseMessagingException

Open hstaudacher opened this issue 3 years ago • 3 comments

Is your feature request related to a problem? Please describe. FirebaseMessagingException is final and has package private/private constructors. This prevents using the exception in tests. The firebase recommendation to deal with invalid tokens is to react on error code UNREGISTERED and INVALID_ARGUMENT. In order to test my code that deals with this scenario I would need to create a FirebaseMessagingException with the specified error codes which I can't.

Describe the solution you'd like Open up FirebaseMessagingException to allow instantiation in tests.

hstaudacher avatar Sep 27 '22 08:09 hstaudacher

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

google-oss-bot avatar Sep 27 '22 08:09 google-oss-bot

Any progress here?

hstaudacher avatar Jan 04 '23 08:01 hstaudacher

Same situation here. Please make it public. It blocks us now from upgrading to latest version of the library.

Can we suggest PR for this?

ErwinSteffens avatar Dec 15 '23 07:12 ErwinSteffens