Skip to main content
Defined in: guardrails/types.ts:78 Thrown when a payment is blocked by the configured spend controls.

Extends

  • Error

Constructors

Constructor

Defined in: guardrails/types.ts:92 Creates a SpendControlError with the given code and message.

Parameters

code
SpendControlErrorCode The error code identifying the violation type.
message
string Human-readable error message.
details?
SpendControlErrorDetails = {} Optional structured context for the error.

Returns

SpendControlError

Overrides

Properties

code

Defined in: guardrails/types.ts:80
  • Identifies the type of violation.

details

Defined in: guardrails/types.ts:83
  • Structured context for the error (always defined, may be empty).