adpa-enterprise-framework-automation
Version:
Modular, standards-compliant Node.js/TypeScript automation framework for enterprise requirements, project, and data management. Provides CLI and API for BABOK v3, PMBOK 7th Edition, and DMBOK 2.0 (in progress). Production-ready Express.js API with TypeSpe
48 lines • 1.29 kB
JavaScript
/**
* Shared TypeScript types for CLI and commands
*
* Centralized type definitions for improved type safety and consistency
* as recommended in CLI-REFACTOR-IMPLEMENTATION-GUIDE.md section 5 (Phase 3)
*
* @version 2.1.3
* @author Requirements Gathering Agent Team
* @created July 2025
*
* @filepath c:\Users\menno\Source\Repos\requirements-gathering-agent\src\types.ts
*/
/**
* Custom error types for better error handling
*/
export class ValidationError extends Error {
field;
constructor(message, field) {
super(message);
this.field = field;
this.name = 'ValidationError';
}
}
export class ConfigurationError extends Error {
configPath;
constructor(message, configPath) {
super(message);
this.configPath = configPath;
this.name = 'ConfigurationError';
}
}
export class CommandExecutionError extends Error {
exitCode;
constructor(message, exitCode) {
super(message);
this.exitCode = exitCode;
this.name = 'CommandExecutionError';
}
}
export class AIProviderError extends Error {
provider;
constructor(message, provider) {
super(message);
this.provider = provider;
this.name = 'AIProviderError';
}
}
//# sourceMappingURL=types.js.map