TurnTimeoutError
Thrown when a turn or model call exceeds its time limit.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new TurnTimeoutError(
timeoutMs,scope):TurnTimeoutError
Parameters
Section titled “Parameters”timeoutMs
Section titled “timeoutMs”number
"turn" | "model"
Returns
Section titled “Returns”TurnTimeoutError
Overrides
Section titled “Overrides”Properties
Section titled “Properties”cause?
Section titled “cause?”
readonlyoptionalcause?:Error
Original error that caused this one, if any.
Inherited from
Section titled “Inherited from”code:
string
Machine-readable error code (e.g., “ABORT”, “RATE_LIMIT”, “TOOL_DENIED”).
Inherited from
Section titled “Inherited from”retryable
Section titled “retryable”
readonlyretryable:boolean
Whether this error can be retried by retry middleware.
Inherited from
Section titled “Inherited from”
readonlyscope:"turn"|"model"
Whether this was a turn timeout or model call timeout.
timeoutMs
Section titled “timeoutMs”
readonlytimeoutMs:number
Timeout that was exceeded, in milliseconds.