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-09-18 01:12:46 +00:00
|
|
|
// NOTE: Remove these three methods and the @optional directive after updating the codebase to use only the three below
|
|
|
|
@optional
|
2015-05-13 17:56:09 +00:00
|
|
|
- (void)handleSoftJSExceptionWithMessage:(NSString *)message stack:(NSArray *)stack;
|
|
|
|
- (void)handleFatalJSExceptionWithMessage:(NSString *)message stack:(NSArray *)stack;
|
|
|
|
- (void)updateJSExceptionWithMessage:(NSString *)message stack:(NSArray *)stack;
|
2015-03-12 19:51:44 +00:00
|
|
|
|
2015-09-18 01:12:46 +00:00
|
|
|
- (void)handleSoftJSExceptionWithMessage:(NSString *)message stack:(NSArray *)stack exceptionId:(NSNumber *)exceptionId;
|
|
|
|
- (void)handleFatalJSExceptionWithMessage:(NSString *)message stack:(NSArray *)stack exceptionId:(NSNumber *)exceptionId;
|
|
|
|
- (void)updateJSExceptionWithMessage:(NSString *)message stack:(NSArray *)stack exceptionId:(NSNumber *)exceptionId;
|
|
|
|
|
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-03-12 19:51:44 +00:00
|
|
|
- (instancetype)initWithDelegate:(id<RCTExceptionsManagerDelegate>)delegate NS_DESIGNATED_INITIALIZER;
|
|
|
|
|
2015-04-10 08:33:10 +00:00
|
|
|
@property (nonatomic, assign) NSUInteger maxReloadAttempts;
|
|
|
|
|
2015-01-30 01:10:49 +00:00
|
|
|
@end
|