GuardrailExecutionError
Error thrown when a guardrail execution fails.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new GuardrailExecutionError( message, error, state?): GuardrailExecutionError
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
|
|
|
|
|
Returns
Section titled “Returns”GuardrailExecutionError
Overrides
Section titled “Overrides”Properties
Section titled “Properties”error: Error;
message
Section titled “message”message: string;
Inherited from
Section titled “Inherited from”name: string;
Inherited from
Section titled “Inherited from”stack?
Section titled “stack?”optional stack: string;
Inherited from
Section titled “Inherited from”state?
Section titled “state?”optional state: RunState<any, Agent<any, any>>;
Inherited from
Section titled “Inherited from”prepareStackTrace()?
Section titled “prepareStackTrace()?”static optional prepareStackTrace: (err, stackTraces) => any;
Optional override for formatting stack traces
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
|
|
|
|
Returns
Section titled “Returns”any
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
Section titled “Inherited from”stackTraceLimit
Section titled “stackTraceLimit”static stackTraceLimit: number;
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”captureStackTrace()
Section titled “captureStackTrace()”static captureStackTrace(targetObject, constructorOpt?): void
Create .stack property on a target object
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
|
|
|
|
Returns
Section titled “Returns”void