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
آخر نشاط في المصدر
٣ مايو ٢٠٢٦ في ٠٨:٢٣
لغة SKILL.md المكتشفة
الإنجليزية
النجوم
٢
التفرعات
٠

خيارات التثبيت

يُحدَّد 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