dependabit / manifest/src / ValidationError
Class: ValidationError
Defined in: packages/manifest/src/validator.ts:20
Wraps a Zod ZodError to provide human-readable formatted error messages.
Remarks
Thrown by validateManifest, validateDependencyEntry, and validateConfig when their input does not match the expected schema.
Extends
Error
Constructors
Constructor
ts
new ValidationError(message, errors): ValidationError;Defined in: packages/manifest/src/validator.ts:21
Parameters
| Parameter | Type |
|---|---|
message | string |
errors | ZodError |
Returns
ValidationError
Overrides
ts
Error.constructorProperties
| Property | Modifier | Type | Inherited from | Defined in |
|---|---|---|---|---|
cause? | public | unknown | Error.cause | node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es2022.error.d.ts:24 |
errors | readonly | ZodError | - | packages/manifest/src/validator.ts:23 |
message | public | string | Error.message | node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1075 |
name | public | string | Error.name | node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1074 |
stack? | public | string | Error.stack | node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1076 |
Methods
getFormattedErrors()
ts
getFormattedErrors(): string[];Defined in: packages/manifest/src/validator.ts:32
Get formatted error messages
Returns
string[]