Different component in my system each have specific namespaces for their errors.
Websites communicates with theses subsystem and receives errors from them that I want to log (raw log of the error).
When an error occurs, I also want
- to show to the user an error message that he can understand (the message will be simpler than the original error message)
- to add a pretty error code that
- can be shared simply over the phone
- map to the original error code without giving a hint to the original error code
- map to a sort of stack trace of what action in the website lead to the error
So I need to map all the error codes / messages of all the subsystems and the usages of these subsystems to a unified error namespace.
Have you already encountered such an error management system and can you help me find the gool model for this ?