stacktrace.tsx 868 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. import type {Frame} from './event';
  2. export enum STACK_VIEW {
  3. RAW = 'raw',
  4. FULL = 'full',
  5. APP = 'app',
  6. }
  7. export enum STACK_TYPE {
  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. help_link?: string;
  42. meta?: MechanismMeta;
  43. synthetic?: boolean;
  44. };