[**Documentation**](../../../README)

***

[Documentation](../../../README) / [@zerotal/inertia](../README) / InertiaTemplateNotLoadedError

# Class: InertiaTemplateNotLoadedError

Defined in: [inertia/src/errors.ts:19](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/inertia/src/errors.ts#L19)

Thrown when `inertia()` / `inertiaStream()` runs before the HTML template has been
loaded — almost always because `InertiaProvider` is not registered.

## Extends

- [`InertiaError`](InertiaError)

## Constructors

### Constructor

> **new InertiaTemplateNotLoadedError**(): `InertiaTemplateNotLoadedError`

Defined in: [inertia/src/errors.ts:20](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/inertia/src/errors.ts#L20)

#### Returns

`InertiaTemplateNotLoadedError`

#### Overrides

[`InertiaError`](InertiaError).[`constructor`](InertiaError#constructor)

## Properties

### code

> `readonly` **code**: `string`

Defined in: [core/src/errors/ZerotalError.ts:18](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/core/src/errors/ZerotalError.ts#L18)

#### Inherited from

[`InertiaError`](InertiaError).[`code`](InertiaError#code)

***

### status

> `readonly` **status**: `number` = `500`

Defined in: [core/src/errors/ZerotalError.ts:19](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/core/src/errors/ZerotalError.ts#L19)

#### Inherited from

[`InertiaError`](InertiaError).[`status`](InertiaError#status)

***

### context?

> `readonly` `optional` **context?**: `Record`\<`string`, `unknown`\>

Defined in: [core/src/errors/ZerotalError.ts:20](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/core/src/errors/ZerotalError.ts#L20)

#### Inherited from

[`InertiaError`](InertiaError).[`context`](InertiaError#context)
