RFC: Composite pattern for error data structures

could this be a way to go? 
We might have to rethink public/private visibility but with this pattern, almost anything is possible client side, i think.
nope but it should be in a different commit...