RCTErrorInfo.m 512 B

123456789101112131415161718192021222324
  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 "RCTErrorInfo.h"
  8. #import "RCTJSStackFrame.h"
  9. @implementation RCTErrorInfo
  10. - (instancetype)initWithErrorMessage:(NSString *)errorMessage stack:(NSArray<RCTJSStackFrame *> *)stack
  11. {
  12. self = [super init];
  13. if (self) {
  14. _errorMessage = [errorMessage copy];
  15. _stack = [stack copy];
  16. }
  17. return self;
  18. }
  19. @end