UNPKG

@bernierllc/content-type-blog-post

Version:

Blog post content type with rich TipTap editor, SEO metadata, database storage, and web publishing

49 lines (47 loc) 1.34 kB
"use strict"; /* Copyright (c) 2025 Bernier LLC This file is licensed to the client under a limited-use license. The client may use and modify this code *only within the scope of the project it was delivered for*. Redistribution or use in other products or commercial offerings is not permitted without written consent from Bernier LLC. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.PublishingError = exports.DatabaseError = exports.SEOValidationError = exports.BlogPostError = void 0; /** * Base blog post error */ class BlogPostError extends Error { constructor(message, code) { super(message); this.code = code; this.name = 'BlogPostError'; } } exports.BlogPostError = BlogPostError; /** * SEO validation error */ class SEOValidationError extends BlogPostError { constructor(message) { super(message, 'SEO_VALIDATION_ERROR'); } } exports.SEOValidationError = SEOValidationError; /** * Database error */ class DatabaseError extends BlogPostError { constructor(message) { super(message, 'DATABASE_ERROR'); } } exports.DatabaseError = DatabaseError; /** * Publishing error */ class PublishingError extends BlogPostError { constructor(message) { super(message, 'PUBLISHING_ERROR'); } } exports.PublishingError = PublishingError;