MCPcopy Create free account
hub / github.com/apitable/apitable / onError

Function onError

packages/core/src/utils/error_capture.ts:61–71  ·  view source on GitHub ↗
(e: any)

Source from the content-addressed store, hash-verified

59 };
60
61 const onError = (e: any) => {
62 const code = e.code || ErrorCode.CollaSyncError;
63 this.event.onError && this.event.onError({
64 ...e,
65 type: ErrorType.CollaError,
66 code: code,
67 message: i18nMessage(code, e.message),
68 }, getErrorType(code));
69
70 throw e;
71 };
72
73 return (...args: any[]) => {
74 try {

Callers 2

getFunction · 0.70
handleErrorMethod · 0.50

Calls 3

i18nMessageFunction · 0.85
getErrorTypeFunction · 0.85
onErrorMethod · 0.65

Tested by

no test coverage detected