Wrap errors

Wrap all errors in the same kind of objects.