# ContentError

A problem with one entry, printed as file:line:column: message, or as posts.get("slug"): message for an entry without a file.

> Every page: https://tomekit.aayush.cv/llms.txt

Defined in: [errors/content-error.ts:32](https://github.com/aayushbtw/tomekit/blob/main/packages/tomekit/src/errors/content-error.ts#L32)

A problem with one entry, printed as `file:line:column: message`, or as `posts.get("slug"): message` for an entry without a file.

## Extends

- [`TomekitError`](https://tomekit.aayush.cv/api-tomekit/classes/TomekitError/index.md)

## Constructors

### Constructor

```ts
constructor(subject: ContentSubject, issue: Issue, options?: ErrorOptions);
```

Defined in: [errors/content-error.ts:43](https://github.com/aayushbtw/tomekit/blob/main/packages/tomekit/src/errors/content-error.ts#L43)

## Properties

### name

```ts
name: string;
```

Defined in: [errors/content-error.ts:33](https://github.com/aayushbtw/tomekit/blob/main/packages/tomekit/src/errors/content-error.ts#L33)

***

### collection

```ts
readonly collection: string | undefined;
```

Defined in: [errors/content-error.ts:35](https://github.com/aayushbtw/tomekit/blob/main/packages/tomekit/src/errors/content-error.ts#L35)

The collection's name, or `undefined` when the problem is not tied to one.

***

### column

```ts
readonly column: number | undefined;
```

Defined in: [errors/content-error.ts:36](https://github.com/aayushbtw/tomekit/blob/main/packages/tomekit/src/errors/content-error.ts#L36)

***

### file

```ts
readonly file: string | undefined;
```

Defined in: [errors/content-error.ts:38](https://github.com/aayushbtw/tomekit/blob/main/packages/tomekit/src/errors/content-error.ts#L38)

Relative to the project root, or `undefined` when the entry has no file.

***

### line

```ts
readonly line: number | undefined;
```

Defined in: [errors/content-error.ts:39](https://github.com/aayushbtw/tomekit/blob/main/packages/tomekit/src/errors/content-error.ts#L39)

***

### slug

```ts
readonly slug: string | undefined;
```

Defined in: [errors/content-error.ts:41](https://github.com/aayushbtw/tomekit/blob/main/packages/tomekit/src/errors/content-error.ts#L41)

The entry's slug, or `undefined` when the problem is with a file or a whole collection.
