let's move the ```constructError``` (including its implementation) as well. Two options:
* base class
* utility function / utility class