Skip to main content

Handling exceptions

It is important to think about non-compliant inputs, from users and client apps, and handle them gracefully. For example, you force the model to always return a JSON resume. When the user enters "I want a McFlurry" you’ll still get a JSON, but what would be ideal here is an Exception.

breaktasks