(cause: Cause.Cause<E>, name: string)
| 8 | import type * as LogLevel from "effect/LogLevel" |
| 9 | |
| 10 | export 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 | |
| 18 | export function reportError(name: string) { |
| 19 | return Effect.fnUntraced( |
no outgoing calls
no test coverage detected
searching dependent graphs…