Always include class name and message in RepositoryException

We have some logs in a bug report where we can't tell what
exception was actually thrown, so let's fix that.