MCPcopy Index your code
hub / github.com/atomicdata-dev/atomic-data-browser / handleError

Method handleError

lib/src/store.ts:234–239  ·  view source on GitHub ↗

* This is called when Errors occur in some of the library functions. Set your * errorhandler function to `store.errorHandler`.

(e: Error | string)

Source from the content-addressed store, hash-verified

232 * errorhandler function to `store.errorHandler`.
233 */
234 handleError(e: Error | string): void {
235 if (typeof e == 'string') {
236 e = new Error(e);
237 }
238 this.errorHandler(e) || console.error(e);
239 }
240
241 /** Let's subscribers know that a resource has been changed. Time to update your views! */
242 notify(resource: Resource): void {

Callers 4

useBaseURLFunction · 0.80
saveFunction · 0.80
useValueFunction · 0.80
useDateFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected