UserError
Error thrown when the error is caused by the library user’s misconfiguration.
Extends
Section titled “Extends”AgentsError
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new UserError(message, state?): UserError
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
|
|
|
|
Returns
Section titled “Returns”UserError
Inherited from
Section titled “Inherited from”AgentsError.constructor
Properties
Section titled “Properties”message
Section titled “message”message: string;
Inherited from
Section titled “Inherited from”AgentsError.message
name: string;
Inherited from
Section titled “Inherited from”AgentsError.name
stack?
Section titled “stack?”optional stack: string;
Inherited from
Section titled “Inherited from”AgentsError.stack
state?
Section titled “state?”optional state: RunState<any, Agent<any, any>>;
Inherited from
Section titled “Inherited from”AgentsError.state
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”AgentsError.prepareStackTrace
stackTraceLimit
Section titled “stackTraceLimit”static stackTraceLimit: number;
Inherited from
Section titled “Inherited from”AgentsError.stackTraceLimit
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
Inherited from
Section titled “Inherited from”AgentsError.captureStackTrace