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.

Informations de source

Dépôt
HKTITAN/cursor-sdk
Dernière activité de la source
3 mai 2026 à 08:23
Langue détectée de SKILL.md
anglais
Étoiles
2
Forks
0

Options d'installation

Le prompt qui vérifie d'abord la source est sélectionné par défaut. Vous pouvez passer à une commande directe ou télécharger une copie locale.

Vérifiez les fichiers source

Lisez SKILL.md et les fichiers associés affichés par SkillsMP avant de décider de l'installer.

Explorateur de fichiers
11 fichiers

Affichage de SKILL.md

SKILL.md
Instructions source · Aperçu en lecture seule
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]]
Voir sur GitHub