eventEntryExceptionGroup.tsx 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. export function EventEntryExceptionGroup() {
  2. return {
  3. type: 'exception',
  4. data: {
  5. values: [
  6. {
  7. type: 'ValueError',
  8. value: 'test',
  9. mechanism: {
  10. exception_id: 4,
  11. is_exception_group: false,
  12. parent_id: 3,
  13. source: 'exceptions[2]',
  14. },
  15. stacktrace: {
  16. frames: [
  17. {
  18. function: 'func4',
  19. module: 'helpers',
  20. filename: 'file4.py',
  21. absPath: 'file4.py',
  22. lineNo: 50,
  23. colNo: null,
  24. context: [[50, 'raise ValueError("test")']],
  25. inApp: true,
  26. data: {},
  27. },
  28. ],
  29. },
  30. rawStacktrace: null,
  31. },
  32. {
  33. type: 'ExceptionGroup 2',
  34. value: 'child',
  35. mechanism: {
  36. exception_id: 3,
  37. is_exception_group: true,
  38. parent_id: 1,
  39. source: 'exceptions[1]',
  40. },
  41. stacktrace: {
  42. frames: [
  43. {
  44. function: 'func3',
  45. module: 'helpers',
  46. filename: 'file3.py',
  47. absPath: 'file3.py',
  48. lineNo: 50,
  49. colNo: null,
  50. context: [],
  51. inApp: true,
  52. data: {},
  53. },
  54. ],
  55. },
  56. rawStacktrace: null,
  57. },
  58. {
  59. type: 'TypeError',
  60. value: 'nested',
  61. mechanism: {
  62. exception_id: 2,
  63. is_exception_group: false,
  64. parent_id: 1,
  65. source: 'exceptions[0]',
  66. },
  67. stacktrace: {
  68. frames: [
  69. {
  70. function: 'func2',
  71. module: 'helpers',
  72. filename: 'file2.py',
  73. absPath: 'file2.py',
  74. lineNo: 50,
  75. colNo: null,
  76. context: [[50, 'raise TypeError("int")']],
  77. inApp: true,
  78. data: {},
  79. },
  80. ],
  81. },
  82. rawStacktrace: null,
  83. },
  84. {
  85. type: 'ExceptionGroup 1',
  86. value: 'parent',
  87. mechanism: {
  88. exception_id: 1,
  89. is_exception_group: true,
  90. source: '__context__',
  91. },
  92. stacktrace: {
  93. frames: [
  94. {
  95. function: 'func1',
  96. module: 'helpers',
  97. filename: 'file1.py',
  98. absPath: 'file1.py',
  99. lineNo: 50,
  100. colNo: null,
  101. context: [[50, 'raise ExceptionGroup("parent")']],
  102. inApp: true,
  103. data: {},
  104. },
  105. ],
  106. },
  107. rawStacktrace: null,
  108. },
  109. ],
  110. },
  111. };
  112. }