@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
Overrides
Properties
blockInstanceId?
readonly blockInstanceId?: string;
Inherited from
blockName?
readonly blockName?: string;
Inherited from
cause?
readonly cause?: unknown;
Inherited from
code?
readonly code?: string;
Inherited from
details
readonly details: UnresolvedIntentDetails;
Overrides
message
message: string;
Inherited from
name
name: string;
Inherited from
retryable
readonly retryable: boolean;
Inherited from
scope?
readonly scope?: FlowErrorScope;
Inherited from
stack?
stack?: string;
Inherited from
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
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.