@mdfriday/foundry
Version:
The core engine of MDFriday. Convert Markdown and shortcodes into fully themed static sites – Hugo-style, powered by TypeScript.
23 lines • 1.08 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ErrInvalidConfigFormat = exports.ErrConfigFileNotFound = exports.ErrWorkspaceNotFound = exports.ErrInvalidConfig = exports.ErrConfigNotFound = exports.ConfigError = void 0;
/**
* ConfigError represents configuration related errors
*/
class ConfigError extends Error {
constructor(message, code) {
super(message);
this.code = code;
this.name = 'ConfigError';
}
}
exports.ConfigError = ConfigError;
/**
* Predefined configuration errors
*/
exports.ErrConfigNotFound = new ConfigError('configuration not found', 'CONFIG_NOT_FOUND');
exports.ErrInvalidConfig = new ConfigError('invalid configuration', 'INVALID_CONFIG');
exports.ErrWorkspaceNotFound = new ConfigError('workspace not found', 'WORKSPACE_NOT_FOUND');
exports.ErrConfigFileNotFound = new ConfigError('configuration file not found', 'CONFIG_FILE_NOT_FOUND');
exports.ErrInvalidConfigFormat = new ConfigError('invalid configuration format', 'INVALID_CONFIG_FORMAT');
//# sourceMappingURL=type.js.map