I think we need some general exception interface that to make cross platform ErrorMessage for Promise reject #364
Matrixbirds
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Introduction
I'm working on react native module exception design. I need some tool class to help me design more general cross platform error exception which used to be javascript layer. I don't want to write different handlers for different platform so that i looked the react native FileReaderModule.
In FileReaderModule, we could see react native team use Promise interface to resolve and reject the result. but there is two different error codes here.
I think probably we need design more cross platform Promise interface or add a new ExceptionModule for react native Promise interface.
Proposals of ExceptionModule
Beta Was this translation helpful? Give feedback.
All reactions