Smart named error objects