Skip to main content
zerotal

Documentation


Documentation / @zerotal/inertia / InvalidComponentError

Class: InvalidComponentError

Defined in: inertia/src/errors.ts:29

Thrown when a component name is unsafe (path traversal) or has no resolvable default export.

Extends

Constructors

Constructor

new InvalidComponentError(component, reason?): InvalidComponentError

Defined in: inertia/src/errors.ts:30

Parameters

component

string

reason?

string = "is not a valid component"

Returns

InvalidComponentError

Overrides

InertiaError.constructor

Properties

code

readonly code: string

Defined in: core/src/errors/ZerotalError.ts:18

Inherited from

InertiaError.code


status

readonly status: number = 500

Defined in: core/src/errors/ZerotalError.ts:19

Inherited from

InertiaError.status


context?

readonly optional context?: Record<string, unknown>

Defined in: core/src/errors/ZerotalError.ts:20

Inherited from

InertiaError.context