Install any skill in seconds. Free to start, no credit card required.
Get Started Free →microck/error-handling-patterns
Master error handling patterns across languages including exceptions, Result types, error propagation, and graceful degradation to build resilient applications.
Passed 14 of 22 test cases with the skill, and 9 of 22 without it.
and 2 more in the full report
5 fixed9 passed either way8 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 5 test cases the skill fixed. Same model, same prompt, with and without the skill.
We have a Rust function returning Option<User> from an in-memory lookup. We need to convert a missing user into a custom AppError::NotFound variant and extract their age. Show how to chain this in Rust without manual match statements.
| Checked | Without skill | With skill |
|---|---|---|
| Uses ok_or_else to convert Option into Result with a lazy error closure | Missed | Passed |
| Chains map to transform the inner User struct into the age field | Passed | Passed |
The instructions your model reads when the skill loads.
Build resilient applications with robust error handling strategies that gracefully handle failures and provide excellent debugging experiences.
Exceptions vs Result Types:
When to Use Each:
Recoverable Errors:
Unrecoverable Errors:
test cases passed, vs 9 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.