Raise Your Own Exceptions
Talk it through with a coach who asks guiding questions and gives hints until you reach the answer. Pass to mark the challenge as completed.
The problem
- medium
- Pro
Your payment library returns error strings like card declined, which callers compare with text. Explain how you'd design custom exceptions instead and how callers would use them.
Talk this problem through with an AI coach
This is a Pro challenge. Sign in with Google, then upgrade to start a voice session.