{"data":{"slug":"github-thedaviddias-front-end-checklist-skills-error-handling-03e4f5ee9a21","title":"Implement Proper Error Handling in JavaScript","summary":"Add try-catch blocks to async operations, use Error Boundaries in React, and log errors with context to prevent crashes and improve debugging.","url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-error-handling-03e4f5ee9a21","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-thedaviddias-front-end-checklist-skills-error-handling-03e4f5ee9a21","markdown_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-error-handling-03e4f5ee9a21.md","download_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-error-handling-03e4f5ee9a21\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Ensure the code being reviewed includes async operations and React components, as these are the primary targets for error handling improvements. Log errors with sufficient context to aid debugging.","instructions":"---\nname: error-handling\ndescription: \"Use when reviewing scripts, client components, bundles, or runtime behavior related to Implement proper error handling. Inspect both source code and the browser execution path so fixes target the real bottleneck or bug.\"\nmetadata:\n  category: javascript\n  priority: high\n  difficulty: intermediate\n  estimatedTime: \"20\"\n  source: frontendchecklist.io\n  url: https:\/\/frontendchecklist.io\/rules\/javascript\/error-handling\n---\n\n# Implement proper error handling\n\nUnhandled errors crash applications, create poor user experiences, and make debugging impossible without proper context.\n\n## Quick Reference\n\n- Wrap async operations in try-catch blocks\n- Use Error Boundaries in React for UI-level error handling\n- Log errors with context for debugging\n- Always re-throw or handle\u2014never silently swallow errors\n\n## Check\n\nReview error handling in this code, ensuring async operations use try-catch and errors are properly logged.\n\n## Fix\n\nAdd try-catch blocks to async operations and implement error boundaries for React components.\n\n## Explain\n\nExplain JavaScript error handling best practices including try-catch, Promise rejection, and error boundaries.\n\n## Code Review\n\nReview scripts, client components, and browser execution paths related to Implement proper error handling. Flag exact imports, event handlers, runtime side effects, or blocking operations that violate the rule, and state how the change should be verified in the browser.\n\n---\n\nFor full implementation details, code examples, and framework-specific guidance,\nsee `references\/rule.md`.\n\nRule page: https:\/\/frontendchecklist.io\/rules\/javascript\/error-handling\n","use_cases":["Reviewing scripts for unhandled errors","Debugging browser execution paths","Improving user experience by preventing crashes"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/thedaviddias\/Front-End-Checklist\/blob\/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e\/skills\/error-handling\/SKILL.md","source_commit":"e8d14d049010e2ce25afcd5e8609dfcbbe63e47e","license":null,"version":null,"listing_approved_at":"2026-11-23","created_at":"2026-11-22T16:01:41.000000Z","updated_at":"2026-11-23T04:55:08.000000Z","seo_title":"Implement Proper Error Handling in JavaScript","seo_description":"Add try-catch blocks to async operations, use Error Boundaries in React, and log errors with context to prevent crashes and improve debugging.","seo_keywords":["JavaScript error handling","Async error handling","Error boundaries in React","Debugging JavaScript errors"]}}