Skip to content

Instantly share code, notes, and snippets.

@AlbanMinassian
Created June 28, 2021 15:58
Show Gist options
  • Save AlbanMinassian/fa8b04d483f1b10233da03cf835d9f2b to your computer and use it in GitHub Desktop.
Save AlbanMinassian/fa8b04d483f1b10233da03cf835d9f2b to your computer and use it in GitHub Desktop.
Comprendre l'architecture hexagonale en 5 minutes - secret - jsonerr
{
"meta": { "whoiam": "services/mon_premier_service.ts", "lang": "fr", "country": "FR", "etc": "..." },
"isout": false, // toujours false si ko
"iserr": true, // toujours true si ko
"err": {
"code": "ERROR_123",
"message": "service en échec",
"origin": {
"meta": { "whoiam": "adapters/db_update.ts", "lang": "fr", "country": "FR", "etc": "..." },
"isout": false,
"iserr": true,
"err": {
"code": "ERROR_456",
"message": "Erreur connexion",
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment