Skip to content

AlpyneDefinitionAccessIncorrectTypeError

Raised when a PRN parses to a resource other than the one requested, for example a Mutation PRN passed to template.

new AlpyneDefinitionAccessIncorrectTypeError(type, prn, message?, options?): AlpyneDefinitionAccessIncorrectTypeError

string

Resource type the PRN named.

string

The PRN whose lookup failed.

string

Human-readable explanation.

ErrorOptions

Standard error options, such as cause.

AlpyneDefinitionAccessIncorrectTypeError

AlpyneDefinitionAccessError.constructor

readonly code: "incorrect-type" = 'incorrect-type'

Discriminator for this error kind.


readonly prn: string

The PRN whose lookup failed.

AlpyneDefinitionAccessError.prn


readonly type: string

Resource type the PRN named, or 'invalid' when it did not parse as a PRN.