Skip to content

Refactor error handling with typed error codes in SDK and app#96

Open
yasha-meursault wants to merge 2 commits intodevfrom
dev-error-refactor
Open

Refactor error handling with typed error codes in SDK and app#96
yasha-meursault wants to merge 2 commits intodevfrom
dev-error-refactor

Conversation

@yasha-meursault
Copy link
Contributor

Replace fragile string matching (error.includes, error ===) with typed error codes. SDK gets TrainError/TrainErrorCode for protocol-level errors. App gets AppError/AppErrorCode for UI-level errors with a unified classifyError() that centralizes all pattern matching. Errors flow as typed objects through atomicContext instead of raw strings.

…d error codes. SDK gets TrainError/TrainErrorCode for protocol-level errors. App gets AppError/AppErrorCode for UI-level errors with a unified classifyError() that centralizes all pattern matching. Errors flow as typed objects through atomicContext instead of raw strings.
@vercel
Copy link

vercel bot commented Mar 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
trainapp Ignored Ignored Preview Mar 20, 2026 1:56pm

Request Review

Base automatically changed from front-901 to dev March 20, 2026 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant