Skip to main content

@flow-state-dev/core/errors/unresolved-intent-error

Classes​

UnresolvedIntentError​

Thrown when an intent/* model has neither an intent mapping nor a default model.

Extends​

Constructors​

Constructor​
new UnresolvedIntentError(intent): UnresolvedIntentError;
Parameters​
intent​

string

Returns​

UnresolvedIntentError

Overrides​

FlowError.constructor

Properties​

blockInstanceId?​
readonly blockInstanceId?: string;
Inherited from​

FlowError.blockInstanceId

blockName?​
readonly blockName?: string;
Inherited from​

FlowError.blockName

cause?​
readonly cause?: unknown;
Inherited from​

FlowError.cause

code?​
readonly code?: string;
Inherited from​

FlowError.code

details​
readonly details: UnresolvedIntentDetails;
Overrides​

FlowError.details

message​
message: string;
Inherited from​

FlowError.message

name​
name: string;
Inherited from​

FlowError.name

retryable​
readonly retryable: boolean;
Inherited from​

FlowError.retryable

scope?​
readonly scope?: FlowErrorScope;
Inherited from​

FlowError.scope

stack?​
stack?: string;
Inherited from​

FlowError.stack

Methods​

isInstance()​
static isInstance(err): err is FlowError;

Matches FlowError and its subclasses by instanceof, plus direct FlowError instances (not subclasses) by name-tag. The name-tag fallback exists for the dual-realm case where a bundler boundary produced a duplicate FlowError identity; subclass realm-safety additionally requires the caller to test the subclass's own name (e.g. err.name === "OutputValidationError").

Parameters​
err​

unknown

Returns​

err is FlowError

Inherited from​

FlowError.isInstance

Type Aliases​

UnresolvedIntentDetails​

type UnresolvedIntentDetails = object;

Structured details carried by UnresolvedIntentError.

Properties​

intent​
intent: string;

The intent name, without the intent/ prefix.

Variables​

UNRESOLVED_INTENT_CODE​

const UNRESOLVED_INTENT_CODE: "unresolved_intent" = "unresolved_intent";

The code every UnresolvedIntentError carries.