UNPKG

@credo-ts/core

Version:

<p align="center"> <br /> <img alt="Credo Logo" src="https://github.com/openwallet-foundation/credo-ts/blob/c7886cb8377ceb8ee4efe8d264211e561a75072d/images/credo-logo.png" height="250px" /> </p> <h1 align="center"><b>Credo - Core</b></h1

1 lines • 655 B
{"version":3,"file":"ZodValidationError.mjs","names":[],"sources":["../../src/error/ZodValidationError.ts"],"sourcesContent":["import { z } from 'zod'\n\nimport { formatZodError } from '../utils/zod-error'\nimport { CredoError } from './CredoError'\n\nexport class ZodValidationError extends CredoError {\n public constructor(\n message: string,\n public readonly zodError: z.ZodError\n ) {\n const formattedError = formatZodError(zodError)\n super(`${message}\\n${formattedError}`)\n }\n}\n"],"mappings":";;;;;;;AAKA,IAAa,qBAAb,cAAwC,WAAW;CACjD,AAAO,YACL,SACA,AAAgB,UAChB;EACA,MAAM,iBAAiB,eAAe,SAAS;AAC/C,QAAM,GAAG,QAAQ,IAAI,iBAAiB;EAHtB"}