Skip to content
Back to skills

Cross Platform Error Handling

ASecurity

Design consistent error handling across web, mobile, and React Native—central handlers, user-facing copy, retry, and logging. Triggers: "error handling", "error boundary", "toast", "React Native errors", "global handler".

  • 25 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 27, 2026
developmentreactnextjsapifrontend

Works with

  • cli
  • api

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add charlieviettq/awesome-agent-skill --skill cross-platform-error-handling --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cross Platform Error Handling?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cross Platform Error Handling
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/charlieviettq-cross-platform-error-handling/badge)](https://www.skillsdirectory.com/skills/charlieviettq-cross-platform-error-handling)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cross-platform-error-handling
description: Design consistent error handling across web, mobile, and React Native—central handlers, user-facing copy, retry, and logging. Triggers: "error handling", "error boundary", "toast", "React Native errors", "global handler".
---

# Cross-Platform Error Handling

Patterns for centralized error capture, user-appropriate messaging, and observability across web and mobile clients.

## When to use

- Inconsistent error UX across platforms
- Unhandled promise rejections or crash reports
- Adding global error boundary/handler

## When not to use

- Server-side API error design (use `api-and-interface-design`)
- Single-platform app with existing mature pattern (extend, don't rewrite)

## Architecture

```
Error occurs → classify (network/auth/validation/unknown)
            → log (structured, no PII)
            → user message (actionable, localized)
            → optional retry/report
```

## Platform patterns

| Platform | Mechanism |
|----------|-----------|
| React web | Error boundary + window `unhandledrejection` |
| React Native | Global handler + native crash reporting SDK |
| Next.js | `error.tsx` boundaries + server action error mapping |

## User messaging rules

- **Network** — "Check connection" + retry
- **Auth** — redirect to login; no token details
- **Validation** — field-level hints
- **Unknown** — generic message + support/ref ID; log details server-side

## Checklist

- [ ] Central error type taxonomy (shared package if monorepo)
- [ ] No stack traces shown to end users
- [ ] Correlation ID in user-facing error when support needed
- [ ] Regression test for at least one error path per platform
- [ ] Offline mode handled where applicable

## Related skills

- `api-and-interface-design` — API error shapes
- `frontend-ui-engineering` — error UI states
- `observability-slo` — error rate alerting

*Clean-room cross-platform error UX workflow.*

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.