Skip to content

PluginError

Import from @varavel/vdl-plugin-sdk.

Error type for plugin generation failures that should be surfaced as structured VDL diagnostics.

Use this when you need to preserve an optional source position.

Extends

  • Error

Constructors

Constructor

new PluginError(message, position?): PluginError;

Parameters

Parameter Type
message string
position? Position

Returns

PluginError

Overrides

Error.constructor

Properties

message

message: string;

Inherited from

Error.message

name

name: string;

Inherited from

Error.name

position?

readonly optional position?: Position;

stack?

optional stack?: string;

Inherited from

Error.stack