Class: ContentError
Defined in: errors/content-error.ts:32
A problem with one entry, printed as file:line:column: message, or as collections.get("name").get("slug"): message for an entry without a file.
Extends
Constructors
Constructor
constructor(subject: ContentSubject, issue: Issue, options?: ErrorOptions);Defined in: errors/content-error.ts:43
Properties
name
name: string;Defined in: errors/content-error.ts:33
collection
readonly collection: string | undefined;Defined in: errors/content-error.ts:35
The collection's name, or undefined when the problem is not tied to one.
column
readonly column: number | undefined;Defined in: errors/content-error.ts:36
file
readonly file: string | undefined;Defined in: errors/content-error.ts:38
Relative to the project root, or undefined when the entry has no file.
line
readonly line: number | undefined;Defined in: errors/content-error.ts:39
slug
readonly slug: string | undefined;Defined in: errors/content-error.ts:41
The entry's slug, or undefined when the problem is with a file or a whole collection.