Master error handling patterns across languages including exceptions, Result types, error propagation, and graceful degradation to build resilient applications.
NewMaintained
Automatic
◆Coding pack
Last verified 8/29/2026
What it changes
Passed 16 of 22 test cases with the skill, and 16 of 22 without it.
Without skill73%
With skill73%
Checks it passed that the model alone missed
Returns an object with ok set to false and the caught syntax error when parsing fails
1 fixed15 passed either way5 still failing1 broke
Pass-rate lift
0 pp
Tokens
+141%
Agent turns
0%
Response time
-7%
Model gemini-3.6-flashMeasured 8/29/2026v116 of 22 cases passed with skill
Tokens, turns and time describe resource use, not a dollar price.
See it in action
A test case the skill fixed. Same model, same prompt, with and without the skill.
Prompt
Write a TypeScript function that converts raw text into parsed objects using a Result type pattern instead of throwing syntax exceptions. Show how to parse arbitrary JSON strings and handle JSON parse errors explicitly by returning either success or error object variants.
What was checked, without and with the skill
Checked
Without skill
With skill
Wraps JSON.parse within a try-catch block and returns Ok or Err objects
Passed
Passed
Returns an object with ok set to false and the caught syntax error when parsing fails
Missed
Passed
case-07 · gemini-3.6-flash · 8/29/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md636 linessingle file
Error Handling Patterns
Build resilient applications with robust error handling strategies that gracefully handle failures and provide excellent debugging experiences.
When to Use This Skill
Implementing error handling in new features
Designing error-resilient APIs
Debugging production issues
Improving application reliability
Creating better error messages for users and developers
Implementing retry and circuit breaker patterns
Handling async/concurrent errors
Building fault-tolerant distributed systems
Core Concepts
1. Error Handling Philosophies
Exceptions vs Result Types:
Exceptions: Traditional try-catch, disrupts control flow
Result Types: Explicit success/failure, functional approach
Use when configuring SMTP email/mailer settings in a Webiny project. Triggers on: "configure email", "set up SMTP", "mailer config", "sending emails", "email not working", "configure mailer", "SMTP password", "Api.Mailer.Smtp".