RCTErrorInfo.h 583 B

123456789101112131415161718192021
  1. /*
  2. * Copyright (c) Facebook, Inc. and its affiliates.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. */
  7. #import <Foundation/Foundation.h>
  8. @class RCTJSStackFrame;
  9. /**
  10. * An ObjC wrapper for React Native errors.
  11. */
  12. @interface RCTErrorInfo : NSObject
  13. @property (nonatomic, copy, readonly) NSString *errorMessage;
  14. @property (nonatomic, copy, readonly) NSArray<RCTJSStackFrame *> *stack;
  15. - (instancetype)initWithErrorMessage:(NSString *)errorMessage stack:(NSArray<RCTJSStackFrame *> *)stack;
  16. @end