[msfem] moves the whole error stuff into a common container class