2015-03-23 22:07:33 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* This source code is licensed under the BSD-style license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
|
|
*/
|
2015-01-30 01:10:49 +00:00
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
2015-02-06 23:43:59 +00:00
|
|
|
#import "RCTBridgeModule.h"
|
2015-01-30 01:10:49 +00:00
|
|
|
|
2015-03-12 19:51:44 +00:00
|
|
|
@protocol RCTExceptionsManagerDelegate <NSObject>
|
|
|
|
|
2015-11-05 20:19:56 +00:00
|
|
|
- (void)handleSoftJSExceptionWithMessage:(NSString *)message stack:(NSArray *)stack exceptionId:(NSNumber *)exceptionId;
|
|
|
|
- (void)handleFatalJSExceptionWithMessage:(NSString *)message stack:(NSArray *)stack exceptionId:(NSNumber *)exceptionId;
|
2015-11-03 22:45:46 +00:00
|
|
|
|
2015-11-05 20:19:56 +00:00
|
|
|
@optional
|
|
|
|
- (void)updateJSExceptionWithMessage:(NSString *)message stack:(NSArray *)stack exceptionId:(NSNumber *)exceptionId;
|
2015-09-18 01:12:46 +00:00
|
|
|
|
2015-03-12 19:51:44 +00:00
|
|
|
@end
|
|
|
|
|
2015-02-06 23:43:59 +00:00
|
|
|
@interface RCTExceptionsManager : NSObject <RCTBridgeModule>
|
2015-01-30 01:10:49 +00:00
|
|
|
|
2015-11-25 11:09:00 +00:00
|
|
|
- (instancetype)initWithDelegate:(id<RCTExceptionsManagerDelegate>)delegate;
|
2015-03-12 19:51:44 +00:00
|
|
|
|
2015-04-10 08:33:10 +00:00
|
|
|
@property (nonatomic, assign) NSUInteger maxReloadAttempts;
|
|
|
|
|
2015-01-30 01:10:49 +00:00
|
|
|
@end
|