ComeçarComece de graça

Graceful degradation

Now that you've seen how to handle and raise exceptions, how can you use that to gracefully fall back to save data points when they exceed database constraints or hit another error? Let's see how you can gracefully fall back to the maximum accepted value when we are out of range.

Este exercício faz parte do curso

Transactions and Error Handling in PostgreSQL

Ver curso

Exercício interativo prático

Transforme a teoria em ação com um de nossos exercícios interativos

Começar o exercício