Skip to content

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

ParameterType
messagestring
errorsZodError

Returns

ValidationError

Overrides

ts
Error.constructor

Properties

PropertyModifierTypeInherited fromDefined in
cause?publicunknownError.causenode_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es2022.error.d.ts:24
errorsreadonlyZodError-packages/manifest/src/validator.ts:23
messagepublicstringError.messagenode_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1075
namepublicstringError.namenode_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1074
stack?publicstringError.stacknode_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[]

Released under the MIT License.