cairo-recoverable-errors

star 3

Explain Cairo recoverable errors using `Result`, `ResultTrait`, and the `?` operator; use when a request involves returning, matching, or unwrapping `Result` values in Cairo.

teddyjfpender By teddyjfpender schedule Updated 1/23/2026

name: cairo-recoverable-errors description: Explain Cairo recoverable errors using Result, ResultTrait, and the ? operator; use when a request involves returning, matching, or unwrapping Result values in Cairo.

Cairo Recoverable Errors

Overview

Show how to model recoverable failures with Result<T, E> and handle them safely.

Quick Use

  • Read references/recoverable-errors.md before answering.
  • Prefer match or ? over unwrap in non-test code.
  • Mention expect when a custom panic message is desired.

Response Checklist

  • Return Result<T, E> from fallible functions.
  • Use Ok(...) and Err(...) explicitly.
  • Apply ? to propagate errors from called functions.

Example Requests

  • "How do I use Result in Cairo?"
  • "What is the difference between unwrap and expect?"
  • "How does the ? operator work?"

Cairo by Example

Install via CLI
npx skills add https://github.com/teddyjfpender/skill-issues --skill cairo-recoverable-errors
Repository Details
star Stars 3
call_split Forks 0
navigation Branch main
article Path SKILL.md
More from Creator
teddyjfpender
teddyjfpender Explore all skills →