MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / error

Function error

packages/core/trace/index.ts:275–285  ·  view source on GitHub ↗
(error: string | Error)

Source from the content-addressed store, hash-verified

273 * @param error The error to be handled.
274 */
275 export function error(error: string | Error) {
276 if (!_errorHandler) {
277 return;
278 }
279
280 if (typeof error === 'string') {
281 error = new Error(error);
282 }
283
284 _errorHandler.handlerError(error);
285 }
286}

Callers

nothing calls this directly

Calls 1

handlerErrorMethod · 0.65

Tested by

no test coverage detected