MCPcopy
hub / github.com/Effect-TS/effect / error

Function error

packages/effect/src/Brand.ts:173–176  ·  view source on GitHub ↗
(message: string, meta?: unknown)

Source from the content-addressed store, hash-verified

171 * @category constructors
172 */
173export const error = (message: string, meta?: unknown): Brand.BrandErrors => [{
174 message,
175 meta
176}]
177
178/**
179 * Takes a variable number of `BrandErrors` and returns a single `BrandErrors` that contains all refinement errors.

Callers 5

failSyncFunction · 0.70
throwsFunction · 0.50
throwsAsyncFunction · 0.50
throwsFunction · 0.50
throwsAsyncFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected