-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
Do not suppress IllegalArgumentExceptions during TurboModule creation #41509
Conversation
This pull request was exported from Phabricator. Differential Revision: D51395165 |
Base commit: fa89dd6 |
…facebook#41509) Summary: We currently ignore `IllegalArgumentException` being thrown from TurboModule getters, as it was deemed acceptable to use that to signal a Package didn't have that module. This however can mask legitimate errors thrown during a TurboModule constructor. TurboReactPackage#getModule is already marked as allowing nullable returns, so let's leave the use of exceptions for exceptional scenarios. Changelog: [Android][Changed] Use null to signal a missing TurboModule instead of IllegalArgumentException. Differential Revision: D51395165
16b09d2
to
139445c
Compare
This pull request was exported from Phabricator. Differential Revision: D51395165 |
…facebook#41509) Summary: We currently ignore `IllegalArgumentException` being thrown from TurboModule getters, as it was deemed acceptable to use that to signal a Package didn't have that module. This however can mask legitimate errors thrown during a TurboModule constructor. TurboReactPackage#getModule is already marked as allowing nullable returns, so let's leave the use of exceptions for exceptional scenarios. Changelog: [Android][Changed] Use null to signal a missing TurboModule instead of IllegalArgumentException. Reviewed By: RSNara Differential Revision: D51395165
139445c
to
d47f8fa
Compare
This pull request was exported from Phabricator. Differential Revision: D51395165 |
…facebook#41509) Summary: We currently ignore `IllegalArgumentException` being thrown from TurboModule getters, as it was deemed acceptable to use that to signal a Package didn't have that module. This however can mask legitimate errors thrown during a TurboModule constructor. TurboReactPackage#getModule is already marked as allowing nullable returns, so let's leave the use of exceptions for exceptional scenarios. Changelog: [Android][Changed] Use null to signal a missing TurboModule instead of IllegalArgumentException. Reviewed By: RSNara Differential Revision: D51395165
d47f8fa
to
505090a
Compare
This pull request was exported from Phabricator. Differential Revision: D51395165 |
…facebook#41509) Summary: We currently ignore `IllegalArgumentException` being thrown from TurboModule getters, as it was deemed acceptable to use that to signal a Package didn't have that module. This however can mask legitimate errors thrown during a TurboModule constructor. TurboReactPackage#getModule is already marked as allowing nullable returns, so let's leave the use of exceptions for exceptional scenarios. Changelog: [Android][Changed] Use null to signal a missing TurboModule instead of IllegalArgumentException. Reviewed By: RSNara Differential Revision: D51395165
505090a
to
8808c29
Compare
This pull request was exported from Phabricator. Differential Revision: D51395165 |
1 similar comment
This pull request was exported from Phabricator. Differential Revision: D51395165 |
8808c29
to
f83f1b4
Compare
…facebook#41509) Summary: We currently ignore `IllegalArgumentException` being thrown from TurboModule getters, as it was deemed acceptable to use that to signal a Package didn't have that module. This however can mask legitimate errors thrown during a TurboModule constructor. TurboReactPackage#getModule is already marked as allowing nullable returns, so let's leave the use of exceptions for exceptional scenarios. Changelog: [Android][Changed] Use null to signal a missing TurboModule instead of IllegalArgumentException. Reviewed By: RSNara Differential Revision: D51395165
…facebook#41509) Summary: We currently ignore `IllegalArgumentException` being thrown from TurboModule getters, as it was deemed acceptable to use that to signal a Package didn't have that module. This however can mask legitimate errors thrown during a TurboModule constructor. TurboReactPackage#getModule is already marked as allowing nullable returns, so let's leave the use of exceptions for exceptional scenarios. Changelog: [Android][Changed] Use null to signal a missing TurboModule instead of IllegalArgumentException. Reviewed By: RSNara Differential Revision: D51395165
f83f1b4
to
cef0114
Compare
This pull request was exported from Phabricator. Differential Revision: D51395165 |
…facebook#41509) Summary: We currently ignore `IllegalArgumentException` being thrown from TurboModule getters, as it was deemed acceptable to use that to signal a Package didn't have that module. This however can mask legitimate errors thrown during a TurboModule constructor. TurboReactPackage#getModule is already marked as allowing nullable returns, so let's leave the use of exceptions for exceptional scenarios. Changelog: [Android][Changed] Use null to signal a missing TurboModule instead of IllegalArgumentException. Reviewed By: RSNara Differential Revision: D51395165
cef0114
to
8537d0f
Compare
This pull request was exported from Phabricator. Differential Revision: D51395165 |
…facebook#41509) Summary: We currently ignore `IllegalArgumentException` being thrown from TurboModule getters, as it was deemed acceptable to use that to signal a Package didn't have that module. This however can mask legitimate errors thrown during a TurboModule constructor. TurboReactPackage#getModule is already marked as allowing nullable returns, so let's leave the use of exceptions for exceptional scenarios. Changelog: [Android][Changed] Use null to signal a missing TurboModule instead of IllegalArgumentException. Reviewed By: RSNara Differential Revision: D51395165
8537d0f
to
e69defd
Compare
This pull request was exported from Phabricator. Differential Revision: D51395165 |
e69defd
to
68575bc
Compare
This pull request was exported from Phabricator. Differential Revision: D51395165 |
…facebook#41509) Summary: We currently ignore `IllegalArgumentException` being thrown from TurboModule getters, as it was deemed acceptable to use that to signal a Package didn't have that module. This however can mask legitimate errors thrown during a TurboModule constructor. TurboReactPackage#getModule is already marked as allowing nullable returns, so let's leave the use of exceptions for exceptional scenarios. Changelog: [Android][Changed] Use null to signal a missing TurboModule instead of IllegalArgumentException. Reviewed By: RSNara Differential Revision: D51395165
68575bc
to
e8caca1
Compare
This pull request was exported from Phabricator. Differential Revision: D51395165 |
…facebook#41509) Summary: We currently ignore `IllegalArgumentException` being thrown from TurboModule getters, as it was deemed acceptable to use that to signal a Package didn't have that module. This however can mask legitimate errors thrown during a TurboModule constructor. TurboReactPackage#getModule is already marked as allowing nullable returns, so let's leave the use of exceptions for exceptional scenarios. Changelog: [Android][Changed] Use null to signal a missing TurboModule instead of IllegalArgumentException. Reviewed By: RSNara Differential Revision: D51395165
e8caca1
to
eee8721
Compare
This pull request was exported from Phabricator. Differential Revision: D51395165 |
…facebook#41509) Summary: We currently ignore `IllegalArgumentException` being thrown from TurboModule getters, as it was deemed acceptable to use that to signal a Package didn't have that module. This however can mask legitimate errors thrown during a TurboModule constructor. TurboReactPackage#getModule is already marked as allowing nullable returns, so let's leave the use of exceptions for exceptional scenarios. Changelog: [Android][Changed] Use null to signal a missing TurboModule instead of IllegalArgumentException. Reviewed By: RSNara Differential Revision: D51395165
eee8721
to
1fdf459
Compare
This pull request was exported from Phabricator. Differential Revision: D51395165 |
…facebook#41509) Summary: We currently ignore `IllegalArgumentException` being thrown from TurboModule getters, as it was deemed acceptable to use that to signal a Package didn't have that module. This however can mask legitimate errors thrown during a TurboModule constructor. TurboReactPackage#getModule is already marked as allowing nullable returns, so let's leave the use of exceptions for exceptional scenarios. Changelog: [Android][Changed] Use null to signal a missing TurboModule instead of IllegalArgumentException. Reviewed By: RSNara Differential Revision: D51395165
1fdf459
to
e8fce17
Compare
This pull request was exported from Phabricator. Differential Revision: D51395165 |
…facebook#41509) Summary: We currently ignore `IllegalArgumentException` being thrown from TurboModule getters, as it was deemed acceptable to use that to signal a Package didn't have that module. This however can mask legitimate errors thrown during a TurboModule constructor. TurboReactPackage#getModule is already marked as allowing nullable returns, so let's leave the use of exceptions for exceptional scenarios. Changelog: [Android][Changed] Use null to signal a missing TurboModule instead of IllegalArgumentException. Reviewed By: RSNara Differential Revision: D51395165
e8fce17
to
9bb057c
Compare
…facebook#41509) Summary: We currently ignore `IllegalArgumentException` being thrown from TurboModule getters, as it was deemed acceptable to use that to signal a Package didn't have that module. This however can mask legitimate errors thrown during a TurboModule constructor. TurboReactPackage#getModule is already marked as allowing nullable returns, so let's leave the use of exceptions for exceptional scenarios. Changelog: [Android][Changed] Use null to signal a missing TurboModule instead of IllegalArgumentException. Reviewed By: RSNara Differential Revision: D51395165
This pull request was exported from Phabricator. Differential Revision: D51395165 |
9bb057c
to
1dd0e5b
Compare
This pull request was exported from Phabricator. Differential Revision: D51395165 |
This pull request has been merged in 228193d. |
…facebook#41509) Summary: Pull Request resolved: facebook#41509 We currently ignore `IllegalArgumentException` being thrown from TurboModule getters, as it was deemed acceptable to use that to signal a Package didn't have that module. This however can mask legitimate errors thrown during a TurboModule constructor. TurboReactPackage#getModule is already marked as allowing nullable returns, so let's leave the use of exceptions for exceptional scenarios. Changelog: [Android][Changed] Use null to signal a missing TurboModule instead of IllegalArgumentException. Reviewed By: RSNara Differential Revision: D51395165 fbshipit-source-id: 1eea1db6c7e3313a36d24e7837b36a3d0fccc718
…gerDelegate Summary: Now that 0.74 has been cut, we can drop this warning and let the exception bubble up. In facebook#41509 we stopped masking this. Changelog: [Android][Changed] Throwing IllegalArgumentException from ReactPackage is no longer suppressed Reviewed By: cortinico, cipolleschi Differential Revision: D54068429
…gerDelegate (facebook#43152) Summary: Now that 0.74 has been cut, we can drop this warning and let the exception bubble up. In facebook#41509 we stopped masking this. Changelog: [Android][Changed] Throwing IllegalArgumentException from ReactPackage is no longer suppressed Reviewed By: cortinico, cipolleschi Differential Revision: D54068429
…gerDelegate (#43152) Summary: Pull Request resolved: #43152 Now that 0.74 has been cut, we can drop this warning and let the exception bubble up. In #41509 we stopped masking this. Changelog: [Android][Changed] Throwing IllegalArgumentException from ReactPackage is no longer suppressed Reviewed By: cortinico, cipolleschi Differential Revision: D54068429 fbshipit-source-id: c2f780ccfefabf2334c94b632bca93242af86008
Summary:
We currently ignore
IllegalArgumentException
being thrown from TurboModule getters, as it was deemed acceptable to use that to signal a Package didn't have that module. This however can mask legitimate errors thrown during a TurboModule constructor.TurboReactPackage#getModule is already marked as allowing nullable returns, so let's leave the use of exceptions for exceptional scenarios.
Changelog: [Android][Changed] Use null to signal a missing TurboModule instead of IllegalArgumentException.
Differential Revision: D51395165