stacktrace.tsx 964 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. import type {Frame} from './event';
  2. export enum StackView {
  3. RAW = 'raw',
  4. FULL = 'full',
  5. APP = 'app',
  6. }
  7. export enum StackType {
  8. ORIGINAL = 'original',
  9. MINIFIED = 'minified',
  10. }
  11. export type StacktraceType = {
  12. framesOmitted: any;
  13. hasSystemFrames: boolean;
  14. registers: Record<string, any> | null;
  15. frames?: Array<Frame>;
  16. };
  17. export type RawStacktrace = StacktraceType | null;
  18. type MechanismMeta = {
  19. errno?: {
  20. number: number;
  21. name?: string;
  22. };
  23. mach_exception?: {
  24. code: number;
  25. exception: number;
  26. subcode: number;
  27. name?: string;
  28. };
  29. signal?: {
  30. number: number;
  31. code?: number;
  32. code_name?: string;
  33. name?: string;
  34. };
  35. };
  36. export type StackTraceMechanism = {
  37. handled: boolean;
  38. type: string;
  39. data?: object;
  40. description?: string;
  41. exception_id?: number;
  42. help_link?: string;
  43. is_exception_group?: boolean;
  44. meta?: MechanismMeta;
  45. parent_id?: number;
  46. source?: string;
  47. synthetic?: boolean;
  48. };