MCPcopy Create free account
hub / github.com/contentlayerdev/contentlayer / SourceFetchDataError

Class SourceFetchDataError

packages/@contentlayer/core/src/errors.ts:26–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}> {}
25
26export class SourceFetchDataError extends Tagged('SourceFetchDataError')<{
27 readonly error: any
28 alreadyHandled: boolean
29}> {
30 toString = () => `SourceFetchDataError: ${errorToString(this.error)}`
31 toJSON = () => ({ _tag: this._tag, error: errorToString(this.error), alreadyHandled: this.alreadyHandled })
32 static fromJSON = (json: any) => new SourceFetchDataError({ error: json.error, alreadyHandled: json.alreadyHandled })
33}
34
35export type SourceFetchDataErrorJSON = ReturnType<SourceFetchDataError['toJSON']>
36

Callers

nothing calls this directly

Calls 1

errorToStringFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…