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.
thanks for pointing that out!