MCPcopy Create free account
hub / github.com/chakra-ui/panda / constructor

Method constructor

packages/shared/src/error.ts:22–26  ·  view source on GitHub ↗
(code: PandaErrorCode, message: string, opts?: { hint?: string; cause?: unknown })

Source from the content-addressed store, hash-verified

20 readonly hint?: string
21
22 constructor(code: PandaErrorCode, message: string, opts?: { hint?: string; cause?: unknown }) {
23 super(message, { cause: opts?.cause })
24 this.code = `ERR_PANDA_${code}`
25 this.hint = opts?.hint
26 }
27}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected