Skip to content

4. Error Handling

Chabardes edited this page May 11, 2022 · 20 revisions

As we said in the previous chapter, we don't check much in the command handler. Does the Hero exists ? Does the Item exists ? Does the Item being equipped belongs to the Hero ? You can find more information on how we handle our backend errors in the Notion documentation.

At Libeo, we use the neverthrow library. The goal is to explicitly tell what could go wrong in our handlers.

TBD

Last commit

Clone this wiki locally