MCPcopy
hub / github.com/hotwired/stimulus / handleError

Method handleError

src/core/context.ts:98–102  ·  view source on GitHub ↗
(error: Error, message: string, detail: object = {})

Source from the content-addressed store, hash-verified

96 // Error handling
97
98 handleError(error: Error, message: string, detail: object = {}) {
99 const { identifier, controller, element } = this
100 detail = Object.assign({ identifier, controller, element }, detail)
101 this.application.handleError(error, `Error ${message}`, detail)
102 }
103
104 // Debug logging
105

Callers 3

constructorMethod · 0.95
connectMethod · 0.95
disconnectMethod · 0.95

Calls 1

handleErrorMethod · 0.65

Tested by

no test coverage detected