Has anyone found a way of adding a dynamic field level error to an sobject?

I would like to do something like

```
mySobjectRec.get('fieldname').addError('my error message');

```

I realise that mySobjectRec.fieldname\_\_c.addError('my error message') works.