RCTErrorInfo.h 616 B

1234567891011121314151617181920212223
  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
  16. stack:(NSArray<RCTJSStackFrame *> *)stack;
  17. @end