MCPcopy Create free account
hub / github.com/effect-app/libs / tryCauseException

Function tryCauseException

packages/vue/src/errorReporter.ts:10–16  ·  view source on GitHub ↗
(cause: Cause.Cause<E>, name: string)

Source from the content-addressed store, hash-verified

8import type * as LogLevel from "effect/LogLevel"
9
10export const tryCauseException = <E>(cause: Cause.Cause<E>, name: string): CauseException<E> => {
11 try {
12 return new CauseException(cause, name)
13 } catch {
14 return new CauseException(Cause.die(new Error("Failed to create CauseException")), name)
15 }
16}
17
18export function reportError(name: string) {
19 return Effect.fnUntraced(

Callers 1

reportErrorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…