ernestio / ernest

Ernest is a tool to define, manage and collaborate on your infrastructure
http://ernest.io/
Mozilla Public License 2.0
17 stars 6 forks source link

Centralized error codes #880

Open purehyperbole opened 6 years ago

purehyperbole commented 6 years ago

Preamble

Idea: <to be assigned>
Title: Centralized error codes
Status: Draft
Created: 2018-02-21

Summary

This feature aims to introduce a centralized library wih all error codes on the platform

Product Overview

Product Description

Actually all errors are returned from any random service, and they can be logged, thrown to the user or captured by the api or cli. This makes it really hard to debug the platform for a non core developer.

The idea is to have a library with all errors on the platform, each one with its code and description, so when a service throws an error could be easily identified by any other service or the cli.

Requirements & Dependancies

May be good to modify all loggers to add the error code too.