@coastal-programs/notion-cli
Version:
Unofficial Notion CLI optimized for automation and AI agents. Non-interactive interface for Notion API v5.2.1 with intelligent caching, retry logic, structured error handling, and comprehensive testing.
34 lines (33 loc) • 1.57 kB
JavaScript
;
/**
* Error Handling System - Clean Exports
*
* Central import point for all error-related functionality.
* Use this for clean imports in command files:
*
* @example
* ```typescript
* import {
* NotionCLIError,
* NotionCLIErrorCode,
* NotionCLIErrorFactory,
* handleCliError,
* wrapNotionError
* } from '../errors'
* ```
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.handleCliError = exports.wrapNotionError = exports.NotionCLIErrorFactory = exports.NotionCLIErrorCode = exports.NotionCLIError = void 0;
// Export enhanced error system
var enhanced_errors_1 = require("./enhanced-errors");
// Error Class
Object.defineProperty(exports, "NotionCLIError", { enumerable: true, get: function () { return enhanced_errors_1.NotionCLIError; } });
// Error Codes Enum
Object.defineProperty(exports, "NotionCLIErrorCode", { enumerable: true, get: function () { return enhanced_errors_1.NotionCLIErrorCode; } });
// Factory Functions
Object.defineProperty(exports, "NotionCLIErrorFactory", { enumerable: true, get: function () { return enhanced_errors_1.NotionCLIErrorFactory; } });
// Utility Functions
Object.defineProperty(exports, "wrapNotionError", { enumerable: true, get: function () { return enhanced_errors_1.wrapNotionError; } });
Object.defineProperty(exports, "handleCliError", { enumerable: true, get: function () { return enhanced_errors_1.handleCliError; } });
// Note: Legacy error system is in src/errors.ts
// Commands should import from this file (src/errors/index.ts) to get enhanced errors