Skip to main content

cursor-errors

CursorAgentError class hierarchy, isRetryable, and recovery patterns. Use when classifying SDK failures, building retry logic, or surfacing actionable messages.

来源信息

仓库
HKTITAN/cursor-sdk
最近来源活动
2026年5月3日 08:23
检测到的 SKILL.md 语言
英语
星标
2
Forks
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
11 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
cursor-errors
description
CursorAgentError class hierarchy, isRetryable, and recovery patterns. Use when classifying SDK failures, building retry logic, or surfacing actionable messages.
metadata
{"internal":false,"source":"https://cursor.com/docs/sdk/typescript"}
# cursor-errors Every SDK throw is a `CursorAgentError` (or subclass). The `isRetryable` flag is your routing decision: retry transient errors, surface terminal ones. ## Base class - [[references/cursor-agent-error]] — `isRetryable`, `code`, `cause`, `protoErrorCode` ## Subclasses - [[references/auth-error]] — `AuthenticationError` - [[references/rate-limit]] — `RateLimitError` - [[references/configuration]] — `ConfigurationError` - [[references/integration-not-connected]] — `IntegrationNotConnectedError` - [[references/network]] — `NetworkError` - [[references/unknown-agent]] — `UnknownAgentError` - [[references/unsupported-op]] — `UnsupportedRunOperationError` ## Patterns - [[references/retry-pattern]] — backoff using `isRetryable` - [[references/schema-stability]] — defensive parsing of tool call args/result ## Cross-links - Run status terminal-error vs throw — [[../cursor-runs/references/wait]] - Operation gating — [[../cursor-runs/references/operation-support]]
在 GitHub 查看