Skip to main content

Class: ManifestValidationError

Defined in: src/types/errors.ts:515

Plugin manifest validation error.

Remarks​

Thrown when a plugin manifest (plugin.json) fails schema validation. Contains all validation errors for debugging.

Example​

const errors = ['id is required', 'version must match semver'];
throw new ManifestValidationError(errors);

Extends​

Constructors​

new ManifestValidationError()​

new ManifestValidationError(errors): ManifestValidationError

Defined in: src/types/errors.ts:528

Creates a new ManifestValidationError.

Parameters​

errors​

readonly string[]

List of validation error messages

Returns​

ManifestValidationError

Overrides​

ChiveError.constructor

Properties​

cause?​

readonly optional cause: Error

Defined in: src/types/errors.ts:71

Original error that caused this error (if any).

Remarks​

Error chaining allows tracking the full error context through multiple layers of the application. Useful for debugging complex error scenarios.

Example​

try {
await fetchData();
} catch (err) {
throw new ValidationError('Failed to validate data', 'field', 'required', err as Error);
}

Inherited from​

ChiveError.cause


code​

readonly code: "MANIFEST_VALIDATION_ERROR" = 'MANIFEST_VALIDATION_ERROR'

Defined in: src/types/errors.ts:516

Machine-readable error code.

Remarks​

Error codes are unique identifiers for error types, enabling programmatic error handling (switch statements, error maps), error tracking in monitoring systems, and client-side error translation (i18n).

Overrides​

ChiveError.code


validationErrors​

readonly validationErrors: readonly string[]

Defined in: src/types/errors.ts:521

List of validation errors found in the manifest.