Install any skill in seconds. Free to start, no credit card required.
Get Started Free →wshobson/error-handling-patterns
Master error handling patterns across languages including exceptions, Result types, error propagation, and graceful degradation to build resilient applications.
Passed 21 of 22 test cases with the skill, and 21 of 22 without it.
1 fixed20 passed either way0 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
A test case the skill fixed. Same model, same prompt, with and without the skill.
A Flask API route validates user input JSON. When a user submits an invalid field format, the current code logs `logger.critical(f'CRITICAL FAILURE: invalid field {field}')`, filling alert channels with thousands of operational pager alerts daily. What logging strategy should be applied for expected validation failures?
| Checked | Without skill | With skill |
|---|---|---|
| Expected validation failures are logged at `info` severity rather than `error` level. | Missed | 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:
test cases passed, vs 21 / 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.