MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / onError

Function onError

packages/importer/src/base-provider.ts:48–51  ·  view source on GitHub ↗

* Optional hook: Custom error handling

(error: Error, context?: ErrorContext)

Source from the content-addressed store, hash-verified

46 * Optional hook: Custom error handling
47 */
48 async onError?(error: Error, context?: ErrorContext): Promise<void> {
49 // Default: re-throw
50 throw error;
51 }
52
53 /**
54 * Get estimated total events (optional, for progress tracking)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected