mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-29 21:46:07 +08:00
Add convenience function for formatting NSError for reporting
Reviewed By: nicklockwood Differential Revision: D2620933 fb-gh-sync-id: c5c40b78b19f12c9a3b1564b1e21f1acb12309ab
This commit is contained in:
committed by
facebook-github-bot-5
parent
31b5b0ac01
commit
824858c6b2
@@ -107,6 +107,11 @@ RCT_EXTERN RCTFatalHandler RCTGetFatalHandler(void);
|
||||
*/
|
||||
RCT_EXTERN NSString *RCTCurrentThreadName(void);
|
||||
|
||||
/**
|
||||
* Helper to get generate exception message from NSError
|
||||
*/
|
||||
RCT_EXTERN NSString *RCTFormatError(NSString *message, NSArray *stacktrace, NSUInteger maxMessageLength);
|
||||
|
||||
/**
|
||||
* Convenience macro to assert which thread is currently running (DEBUG mode only)
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user