WXJSExceptionInfo.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /*
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing,
  13. * software distributed under the License is distributed on an
  14. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  15. * KIND, either express or implied. See the License for the
  16. * specific language governing permissions and limitations
  17. * under the License.
  18. */
  19. #import <Foundation/Foundation.h>
  20. @interface WXJSExceptionInfo : NSObject
  21. /**
  22. * instance id
  23. */
  24. @property(nonatomic,strong) NSString * instanceId;
  25. /**
  26. * the URL where the exception occurred
  27. */
  28. @property(nonatomic,strong) NSString * bundleUrl;
  29. /**
  30. * error code
  31. */
  32. @property(nonatomic,strong) NSString * errorCode;
  33. /**
  34. * the function name of exception
  35. */
  36. @property(nonatomic,strong) NSString * functionName;
  37. /**
  38. * exception detail;
  39. */
  40. @property(nonatomic,strong) NSString * exception;
  41. /**
  42. * extend filed
  43. */
  44. @property(nonatomic,strong) NSMutableDictionary * userInfo;
  45. /**
  46. * weex sdk version
  47. */
  48. @property(nonatomic,strong, readonly) NSString * sdkVersion;
  49. /**
  50. * js framework verison
  51. */
  52. @property(nonatomic,strong, readonly) NSString * jsfmVersion;
  53. /**
  54. * @abstract Initializes a WXJSException instance
  55. * @param instanceId the id of instance
  56. * @param bundleUrl the page URL where the exception occurred
  57. * @param errorCode error Code
  58. * @param exception exception detail
  59. * @param userInfo extend field
  60. */
  61. - (instancetype)initWithInstanceId:(NSString *)instanceId
  62. bundleUrl:(NSString *)bundleUrl
  63. errorCode:(NSString *)errorCode
  64. functionName:(NSString *)functionName
  65. exception:(NSString *)exception
  66. userInfo:(NSMutableDictionary *)userInfo;
  67. @end