exceptionValue.tsx 353 B

12345678910111213141516
  1. import type {ExceptionValue as ExceptionValueType} from 'sentry/types';
  2. export function ExceptionValue(
  3. props: Partial<ExceptionValueType> = {}
  4. ): ExceptionValueType {
  5. return {
  6. mechanism: null,
  7. rawStacktrace: null,
  8. stacktrace: null,
  9. threadId: null,
  10. type: 'BadError',
  11. value: 'message',
  12. module: null,
  13. ...props,
  14. };
  15. }